Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Kasus 2</title>
- <style type="text/css">
- body{
- font-family: verdana;
- font-size: 20px;
- background-color: #2ecc71;
- }
- input[type="text"]{
- width: 65px;
- transition: 0.5s;
- border-radius: 6px;
- }
- input[type="text"]:focus{
- width: 110px;
- text-align: center;
- }
- input.button{
- color: black;
- background: white;
- border: 2px darkgray outset;
- padding: 5px 20px;
- font-size: 14px;
- transition: 0.5s;
- border-radius: 6px;
- }
- input.button:hover{
- color: white;
- background: black;
- }
- </style>
- </head>
- <body>
- <center>
- <h1>Form Input Data Siswa</h1>
- <h3>SMKN 4 Bandung</h3>
- <form method="post">
- <label>Masukan Jumlah Siswa</label>
- <input type="text" name="a" autocomplete="off">
- <input class="button" type="submit" name="b" value="ok">
- <table><br>
- <?php
- for ($i=1; $i <= $_POST['a'] ; $i++):
- ?>
- <tr>
- <td>Nama : <input type="text" name="nama" autocomplete="off"></td>
- <td>Jurusan
- <td>:
- <input type="radio" name="jurusan<?php echo $i ?>" value="RPL">RPL
- <input type="radio" name="jurusan<?php echo $i ?>" value="TKJ">TKJ
- <input type="radio" name="jurusan<?php echo $i ?>" value="MM">MM
- <input type="radio" name="jurusan<?php echo $i ?>" value="AVI">AVI
- <input type="radio" name="jurusan<?php echo $i ?>" value="TITL">TITL
- <input type="radio" name="jurusan<?php echo $i ?>" value="TOI">TOI
- </td>
- </td>
- </tr>
- <?php
- endfor;
- ?>
- <tr>
- <td colspan="3" style="text-align: center;">
- <input class="button" type="submit" name="submit" value="Submit">
- </td>
- </tr>
- </table>
- </form>
- </center>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement