Notice: Undefined variable: tipe in on line : <p>I'm a student and currently I'm learning about PHP, i'm stuck at this, I really don't understand, and I hope there someone can teach me how to fix this things</p>

<p>The error shows:
Notice: Undefined variable: tipe in C:\xampp\htdocs\q\admin\tambahjadwal.php on line 13
semua form harus diisi!</p>

<pre><code>&lt;?php
include"../koneksi/koneksi.php";
if(isset($_POST['tipe'])){
    $berangkat=strip_tags($_POST['tipe']);
    $dari=strip_tags($_POST['lokasi']);
    $ke=strip_tags($_POST['harga']);
    $waktu=strip_tags($_POST['fasilitas']);
    $harga=strip_tags($_POST['max']);

  $gambar=$_FILES['gambar']['tmp_name'];
  $gambar_name=$_FILES[ 'gambar']['name'];

if($gambar&amp;&amp;$tipe&amp;&amp;$lokasi&amp;&amp;$harga&amp;&amp;$fasilitas&amp;&amp;$max){
  move_uploaded_file($gambar, '../gambar/'.$gambar_name);
    $insert="insert into hotel values('','$gambar_name','$tipe','$lokasi','$harga','$fasilitas','$max')";
    $hasil=mysql_query($insert);
    echo"&lt;script&gt;alert('jadwal berhasil ditambah');window.location.href='index.php';&lt;/script&gt;";
}else{
  echo"semua form harus diisi!";
}}
?&gt;



&lt;html&gt;

&lt;body&gt;
&lt;h2&gt;Tambah Hotel&lt;/h2&gt;&lt;br /&gt;

&lt;form action="#" method="post" enctype="multipart/form-data"&gt;
&lt;table width="850" border="0"&gt;
  &lt;tr&gt;
    &lt;td width="360" align="right"&gt;gambar&lt;/td&gt;
    &lt;td width="14" align="center"&gt;:&lt;/td&gt;
    &lt;td width="462"&gt;&lt;input type="file" name="gambar" required="required" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td align="right"&gt;Tipe&lt;/td&gt;
    &lt;td align="center"&gt;:&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" name="tipe"" class="input"  required="required" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td align="right"&gt;Lokasi&lt;/td&gt;
    &lt;td align="center"&gt;:&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" name="lokasi" class="input" required="required" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td align="right"&gt;Harga&lt;/td&gt;
    &lt;td align="center"&gt;:&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" name="harga" class="input" required="required" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td align="right"&gt;Fasilitas&lt;/td&gt;
    &lt;td align="center"&gt;:&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" name="fasilitas" class="input" required="required" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td align="right"&gt;Maksimal&lt;/td&gt;
    &lt;td align="center"&gt;:&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" name="max" class="input" required="required" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td height="73" align="right"&gt;&lt;input type="reset" value="reset" class="button" /&gt;&lt;/td&gt;
    &lt;td&gt;&amp;nbsp;&lt;/td&gt;
    &lt;td&gt;&lt;input type="submit" value="tambah" class="button" onclick="return confirm('apakah anda yakin?')" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>and koneksi.php</p>

<pre><code>&lt;?php
mysql_connect("localhost","root","");
mysql_select_db("a");
?&gt;
</code></pre>
