Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Davitra Eka S XI RPL 2</title>
- </head>
- <body>
- <form method="post" action="Studikasus2.php">
- <h1>Daftar Jurusan Siswa</h1><br>
- <h3>SMKN 4 Bandung</h3>
- <label>Masukan jumlah Data</label>
- <input type="text" name="jumlah" id="jumlah">
- <input type="submit" name="button" value="OK">
- <?php
- $jumlah = $_POST['jumlah'];
- $tabel = '
- <table>
- <tr>
- <td>
- <label>Nama :</label>
- </td>
- <td><input type="text" name="nama"></td>
- <td>
- <label>jurusan :</label>
- <input type="radio" name="jurusan" value="RPL">RPL
- <input type="radio" name="jurusan" value="TKJ">TKJ
- <input type="radio" name="jurusan" value="MM">MM
- <input type="radio" name="jurusan" value="AV">AV
- <input type="radio" name="jurusan" value="TOI">TOI
- <input type="radio" name="jurusan" value="TITL">TITL
- </td>
- </tr>
- </table>';
- for ($i = 1; $i <= $jumlah; $i++){
- echo $tabel;
- }
- ?>
- <input type="submit" name="button2" value="Submit">
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement