i'm a newbie on PHP. this is my two sample php file :
1st :<form2php1.php>
<html>
<head> <title>Pengelolaan Data Toko buku Serba Murah</title></head>
<body>
<center>
<h2>Pengelolaan Toko Buku Serba Murah</h2>
<h3>INPUT DATA BUKU</H3>
</center>
<hr>
<form action=form2php2.php method=post>
<b>Judul Buku :</b>
<input type=text name=judul><br>
<b>Sekilas isi :</b>
<textarea name=sekilas></textarea><br>
<b>Jenis Buku :</b>
<input type=text name=jenis><br>
<b>Nama File Gambar :</b>
<input type=text name=nama_gmb><br>
<b>Nama Penerbit :</b>
<input type=text name=penerbit><br>
<b>Nama Penulis :</b>
<input type=text name=penulis><br>
<b>Harga Buku :</b>
<input type=text name=harga><br>
<b>Banyaknya :</b>
<input type=text name=jumlah><br>
<input type=submit value=PROSES>
<input type=reset value=ULANGI>
</form>
<hr>
</body>
</html>
the second :<form2php2.php>
<html>
<head> <title>Pengelolaan Data Toko buku Serba Murah</title></head>
<body>
<center>
<h2>Pengelolaan Toko Buku Serba Murah</h2>
<h3>DATA BUKU</H3>
</center>
<hr>
<?php
// menampilkan data yang dikirimkan dari file form2php1.php
echo"
<b>Judul Buku :</b> $judul<br>
<b>Sekilas isi :</b> $sekilas<br>
<b>Jenis Buku :</b> $jenis<br>
<b>Nama File Gambar :</b> $nama_gmb<br>
<b>Nama Penerbit :</b> $penerbit<br>
<b>Nama Penulis :</b> $penulis<br>
<b>Harga Buku :</b> $harga<br>
<b>Banyaknya :</b> $jumlah<br>";
?>
<hr>
</body>
</html>
when i run the first file <form2php1.php> and fill the form and then process it to next file i got error message like this :
Notice: Undefined variable: judul in c:\Inetpub\ on line 15
Notice: Undefined variable: sekilas in c:\Inetpub\ on line 16
Notice: Undefined variable: jenis in c:\Inetpub\ on line 17
Notice: Undefined variable: nama_gmb in c:\Inetpub\ on line 18
Notice: Undefined variable: penerbit in c:\Inetpub\ on line 19
Notice: Undefined variable: penulis in c:\Inetpub\ on line 20
Notice: Undefined variable: harga in c:\Inetpub\ on line 21
Notice: Undefined variable: jumlah in c:\Inetpub\ on line 22
can somebody tell me what's wrong with these script?
1st :<form2php1.php>
<html>
<head> <title>Pengelolaan Data Toko buku Serba Murah</title></head>
<body>
<center>
<h2>Pengelolaan Toko Buku Serba Murah</h2>
<h3>INPUT DATA BUKU</H3>
</center>
<hr>
<form action=form2php2.php method=post>
<b>Judul Buku :</b>
<input type=text name=judul><br>
<b>Sekilas isi :</b>
<textarea name=sekilas></textarea><br>
<b>Jenis Buku :</b>
<input type=text name=jenis><br>
<b>Nama File Gambar :</b>
<input type=text name=nama_gmb><br>
<b>Nama Penerbit :</b>
<input type=text name=penerbit><br>
<b>Nama Penulis :</b>
<input type=text name=penulis><br>
<b>Harga Buku :</b>
<input type=text name=harga><br>
<b>Banyaknya :</b>
<input type=text name=jumlah><br>
<input type=submit value=PROSES>
<input type=reset value=ULANGI>
</form>
<hr>
</body>
</html>
the second :<form2php2.php>
<html>
<head> <title>Pengelolaan Data Toko buku Serba Murah</title></head>
<body>
<center>
<h2>Pengelolaan Toko Buku Serba Murah</h2>
<h3>DATA BUKU</H3>
</center>
<hr>
<?php
// menampilkan data yang dikirimkan dari file form2php1.php
echo"
<b>Judul Buku :</b> $judul<br>
<b>Sekilas isi :</b> $sekilas<br>
<b>Jenis Buku :</b> $jenis<br>
<b>Nama File Gambar :</b> $nama_gmb<br>
<b>Nama Penerbit :</b> $penerbit<br>
<b>Nama Penulis :</b> $penulis<br>
<b>Harga Buku :</b> $harga<br>
<b>Banyaknya :</b> $jumlah<br>";
?>
<hr>
</body>
</html>
when i run the first file <form2php1.php> and fill the form and then process it to next file i got error message like this :
Notice: Undefined variable: judul in c:\Inetpub\ on line 15
Notice: Undefined variable: sekilas in c:\Inetpub\ on line 16
Notice: Undefined variable: jenis in c:\Inetpub\ on line 17
Notice: Undefined variable: nama_gmb in c:\Inetpub\ on line 18
Notice: Undefined variable: penerbit in c:\Inetpub\ on line 19
Notice: Undefined variable: penulis in c:\Inetpub\ on line 20
Notice: Undefined variable: harga in c:\Inetpub\ on line 21
Notice: Undefined variable: jumlah in c:\Inetpub\ on line 22
can somebody tell me what's wrong with these script?