Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>Document</title>
- </head>
- <body bgcolor="">
- <h2> nama: M.ilham Riyanto</h2>
- <h2>kelas: 3.B</h2>
- <h1>Belajar Form</h1>
- <ol type="A">
- <li><h2>form 1</h2></li>
- <form action="" method="GET">
- <label for="nama"> Nama :</label>
- <input type="text" name="nama">
- <label for="npm">NPM</label>
- <input type="text" name="npm">
- <input type="submit" name="simpan" value="save">
- <input type="reset" value="Reset Data">
- </form>
- <hr>
- <h2><li>form 2</li></h2>
- <form action="" method="GET">
- <table>
- <tr>
- <td><label for="Nama">Nama</label></td>
- <td>:</td>
- <td><input type="text" name="Nama" autocomplete="off"></td>
- </tr>
- <tr>
- <td><label for="npm">NPM</label></td>
- <td>:</td>
- <td><input type="text" name="npm"></td>
- </tr>
- <tr>
- <td><label for="password">password</label></td>
- <td>:</td>
- <td><input type="password" name="password"></td>
- </tr>
- <tr>
- <td colspan="2"></td>
- <td>
- <input type="submit" name="simpan" value="save">
- <input type="reset" value="Reset Data">
- </td>
- </tr>
- </table>
- </form>
- <hr>
- <h2><li>form 3</li></h2>
- <form action="proses.php" method="POST">
- <table>
- <tr>
- <td><label for="Nama">Nama</label></td>
- <td>:</td>
- <td><input type="text" name="Nama"></td>
- </tr>
- <tr>
- <td><label for="npm">NPM</label></td>
- <td>:</td>
- <td><input type="text" name="npm"></td>
- </tr>
- <tr>
- <td><label for="hp">No. Handphone</label></td>
- <td>:</td>
- <td><input type="number" name="hp"></td>
- </tr>
- <tr>
- <td><label for="gender">Gender</label></td>
- <td>:</td>
- <td><input type="radio" name="Gender" value="pria"> Pria
- <input type="radio" name="Gender" value="wanita"> Wanita
- <input type="radio" name="Gender" value="other"> Other
- </td>
- </tr>
- <tr>
- <td><label for="alamat">alamat</label></td>
- <td>:</td>
- <td><textarea name="" id="" cols="18" rows="3"></textarea></td>
- </tr>
- <tr>
- <td><label for="time">waktu</label></td>
- <td>:</td>
- <td><input type="time" name="time"></td>
- </tr>
- <td><label for="jurusan">jurusan</label></td>
- <td>:</td>
- <td><select>
- <option value="TI">teknik informatika</option>
- <option value="TM">teknik mesin</option>
- <option value="PWk">teknik planologi</option>
- </select></td>
- <tr>
- <td><label for="hobi">Hobi</label></td>
- <td>:</td>
- <td><input type="checkbox" name="kerja" value="jogging"> jogging
- <input type="checkbox" name="kerja" value="bola"> volly
- <input type="checkbox" name="kerja" value="ngaji">mengaji</td>
- </tr>
- <tr>
- <td><label for="tgl"> tanggal</label></td>
- <td>:</td>
- <td><input type="date" name="tgl"></td>
- </tr>
- <tr>
- <td><label for="file">input file</label></td>
- <td>:</td>
- <td><input type="file" name="file"></td>
- </tr>
- <tr>
- <td colspan="2"></td>
- <td>
- <input type="submit" name="simpan" value="save">
- <input type="reset" value="Reset Data">
- </td>
- </tr>
- </table>
- </form>
- <hr>
- </ol>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement