title: can't upload using fupload in php+wamp
body: <p>i dont know why this error, please help, i have been looking everywhere, but no relevant.</p>
  
  <pre><code>$lokasi_file = $_FILES['fupload']['tmp_name']; 
  $nama_file = $_FILES['fupload']['name']; 
  </code></pre>
  
  <p>it say Undefined index: fupload in c</p>
  
  <p>and</p>
  
  <p>Undefined index: kategori in C</p>
  
  <pre><code>if (!empty($lokasi_file)){ 
    move_uploaded_file($lokasi_file,"images/$nama_file"); 
    mysql_query("INSERT INTO table_berita(judul, 
      id_kategori, 
      isi_berita, 
      id_user, 
      jam, 
      tanggal, 
      hari, 
      gambar)VALUES('$_POST[judul]',
      '$_POST[kategori]',
      '$_POST[isi_berita]',
      '$jam_skrg',
      '$tgl_skrg',
      '$hari_ini',
      '$_SESSION[namauser]'
      '$nama_file')",$connection);
  </code></pre>