Proses input diPhp

membuat proses inputan di php tanpa menggunakan database semoga bermanfaat silakan mencoba

_____________________________________________________________________________
<html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>salam halo</title>
</head>

<body>
<form method="post">
<table width="387" border="1">
  <tr>
    <th colspan="4" scope="row">isi data siswa</th>
  </tr>
  <tr>
    <th width="88" scope="row">nama</th>
    <td colspan="3"><input type="text" name="nama" /></td>
  </tr>
  <tr>
    <th scope="row">kelas</th>
    <td colspan="3"><input type="text" name="kelas" /></td>
  </tr>
  <tr>
    <th scope="row">jenis kelamin</th>
    <td colspan="2"><input type="radio" name="jn" value="laki-laki">Laki-Laki</td>
    <td width="146" colspan="2"><input type="radio" name="jn" value="permpuan">Perempuan</td>
  </tr>
  <tr>
    <th scope="row">alamat</th>
    <td colspan="3"><textarea name="alamat"></textarea></td>
  </tr>
  <tr>
    <th height="33" colspan="4" scope="row"><input type="submit" name="submit" value="kirim"></th>
  </tr>
</table>
</form>
</body>
<?php
if(isset($_POST['submit'])){
$nama=$_POST['nama'];
$nam=$_POST['kelas'];
$na=$_POST['jn'];
$n=$_POST['alamat'];
echo $nama .' <p>'.$nam.' <p>'.$na.' <p>'.$n;
}
?>
</html>
_____________________________________________________________________________

semoga anda bisa belajar php :)  selamat belajar.

Komentar