Advertisement
Rofihimam

Untitled

Oct 1st, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.99 KB | None | 0 0
  1. <link href="https://fonts.googleapis.com/css?family=Bree+Serif&display=swap" rel="stylesheet">
  2. <style type="text/css">
  3.     h1, h2, p{
  4.         font-family: 'Bree Serif', serif;
  5.         text-align: center;
  6.     }
  7.     table{
  8.         border: 5px outset darkblue;
  9.         background: linear-gradient(to right, #0033cc 0%, #ff0066 100%);
  10.     }
  11.     th{
  12.         font-family: 'Bree Serif', serif;
  13.         font-size: 25px;
  14.     }
  15.     td{
  16.         font-family: 'Bree Serif', serif;
  17.         font-size: 20px;
  18.     }
  19.     input{
  20.         border: 2px inset black;
  21.         background-color: silver;
  22.         font-family: 'Bree Serif', serif;
  23.         font-size: 15px;
  24.         border-radius: 50px;
  25.         text-align: center;
  26.     }
  27.     input#button{
  28.         border: 3px outset blue;
  29.         background-color: silver;
  30.         font-family: 'Bree Serif', serif;
  31.         transition-duration: 0.5s;
  32.         font-size: 15px;
  33.         border-radius: 50px;
  34.         width: 50px;
  35.     }
  36.     input#button:hover{
  37.         border: 3px outset blue;
  38.         background: linear-gradient(to bottom, #0033cc 0%, #ff0066 100%);
  39.         font-family: 'Bree Serif', serif;
  40.         font-size: 17px;
  41.         border-radius: 50px;
  42.         width: 50px;
  43.         color: white;
  44.     }
  45. </style>
  46.  
  47. <h1>Daftar Jurusan Siswa</h1>
  48. <h2>SMKN 4 Bandung</h2>
  49. <form id="studi2" name="studi2" method="post">
  50.     <p>
  51.         Masukkan Jumlah Data :
  52.         <input type="number" name="jumlahData" id="jumlahData" autocomplete="off" required="">
  53.         <input type="submit" name="button" id="button" value="OK">
  54.     </p>
  55. </form>
  56. <table align="center">
  57.     <?php
  58.     if (isset($_POST['button'])) {
  59.         $jumlahData = $_POST['jumlahData'];
  60.         for ($y = 1; $y <= $jumlahData; $y++) {
  61.     ?>
  62.     <tr>
  63.         <td>Nama</td>
  64.         <td>:</td>
  65.         <td><input type="text" name="nama" id="nama" autocomplete="off"></td>
  66.         <td>Jurusan</td>
  67.         <td>:</td>
  68.         <td><input type="radio" name="radiobutton">RPL</td>
  69.         <td><input type="radio" name="radiobutton">TKJ</td>
  70.         <td><input type="radio" name="radiobutton">MM</td>
  71.         <td><input type="radio" name="radiobutton">AV</td>
  72.         <td><input type="radio" name="radiobutton">TITL</td>
  73.         <td><input type="radio" name="radiobutton">TOI</td>
  74.     </tr>
  75.     <?php } } ?>
  76. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement