Advertisement
dysphafiz_

Untitled

Oct 2nd, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.57 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>Kasus 1 (M. Hafidz Fadillah - XI RPL 2)</title>
  5.     <style type="text/css">
  6.         body{
  7.             font-family: verdana;
  8.             font-size: 20px;
  9.             background-color: blanchedalmond;
  10.         }
  11.         input.button{
  12.             color: black;
  13.             background: white;
  14.             border: 2px darkgray outset;
  15.             padding: 5px 20px;
  16.             font-size: 14px;
  17.         }
  18.         input.button:hover{
  19.             color: white;
  20.             background: black;
  21.         }
  22.     </style>
  23. </head>
  24. <body>
  25.     <center>
  26.     <h1>Form Input Data Siswa</h1>
  27.     <h3>SMKN 4 Bandung</h3>
  28.  
  29.     <form method="post">
  30.         <label>Masukan Jumlah Siswa</label>
  31.         <input type="text" name="a" autocomplete="off">
  32.         <input class="button" type="submit" name="b" value="ok">
  33.    
  34.  
  35.  
  36.     <table><br>
  37.  
  38.         <?php
  39.         for ($i=1; $i <= $_POST['a'] ; $i++):
  40.          ?>
  41.  
  42.          <tr>
  43.             <td>Nama : <input type="text" name="nama" autocomplete="off"></td>
  44.             <td>Jurusan
  45.                 <td>:
  46.                     <input type="radio" name="jurusan<?php echo $i ?>" value="RPL">RPL
  47.                     <input type="radio" name="jurusan<?php echo $i ?>" value="TKJ">TKJ
  48.                     <input type="radio" name="jurusan<?php echo $i ?>" value="MM">MM
  49.                     <input type="radio" name="jurusan<?php echo $i ?>" value="AVI">AVI
  50.                     <input type="radio" name="jurusan<?php echo $i ?>" value="TITL">TITL
  51.                     <input type="radio" name="jurusan<?php echo $i ?>" value="TOI">TOI
  52.                 </td>
  53.             </td>
  54.          </tr>
  55.  
  56.          <?php
  57.         endfor;
  58.         ?>
  59.  
  60.           <tr>
  61.             <td colspan="3" style="text-align: center;">
  62.                 <input class="button" type="submit" name="submit" value="Submit">
  63.             </td>
  64.           </tr>
  65.     </table>
  66.     </form>
  67.     </center>
  68. </body>
  69. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement