inputan dengan variabel nama keluarga
sourcode html
<html>
<head>
<title> Form </title>
</head>
<body> <h1>
 INPUT KELUARGAKU</h1>
 <pre>
 <form action ="pwd21.php" method="post">
  Nama    : <input type="text" name ="GUPRAN"></br>
  Sebagai  : <input type="text" name ="HAPIZAH"></br>
  <input type ="submit" value="kirim" name="kirim">
  </form>
</pre>
</body>
</html>
sourcode php
<html>
<head>
<title> KELUARGA </title>
</head>
<body>
 <?php
 extract($_POST);
 echo " <h3>KELUARGA</h3>
</br>";
 echo 'Nama Anda : '.$GUPRAN.' </br>';
 echo "Sebagai : ".$HAPIZAH." </br>";
 ?>
 <form action ="bukutamu.html">
  <input type ="submit" value ="kembali" name ="Kembali">
 </form>
</body>
</html>
Tidak ada komentar:
Posting Komentar