Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <link href="https://fonts.googleapis.com/css?family=Bree+Serif&display=swap" rel="stylesheet">
- <style type="text/css">
- h1, h2, p{
- font-family: 'Bree Serif', serif;
- text-align: center;
- }
- table{
- border: 5px outset darkblue;
- background: linear-gradient(to right, #0033cc 0%, #ff0066 100%);
- }
- th{
- font-family: 'Bree Serif', serif;
- font-size: 25px;
- }
- td{
- font-family: 'Bree Serif', serif;
- font-size: 20px;
- }
- input{
- border: 2px inset black;
- background-color: silver;
- font-family: 'Bree Serif', serif;
- font-size: 15px;
- border-radius: 50px;
- text-align: center;
- }
- input#button{
- border: 3px outset blue;
- background-color: silver;
- font-family: 'Bree Serif', serif;
- transition-duration: 0.5s;
- font-size: 15px;
- border-radius: 50px;
- width: 50px;
- }
- input#button:hover{
- border: 3px outset blue;
- background: linear-gradient(to bottom, #0033cc 0%, #ff0066 100%);
- font-family: 'Bree Serif', serif;
- font-size: 17px;
- border-radius: 50px;
- width: 50px;
- color: white;
- }
- </style>
- <h1>Daftar Jurusan Siswa</h1>
- <h2>SMKN 4 Bandung</h2>
- <form id="studi2" name="studi2" method="post">
- <p>
- Masukkan Jumlah Data :
- <input type="number" name="jumlahData" id="jumlahData" autocomplete="off" required="">
- <input type="submit" name="button" id="button" value="OK">
- </p>
- </form>
- <table align="center">
- <?php
- if (isset($_POST['button'])) {
- $jumlahData = $_POST['jumlahData'];
- for ($y = 1; $y <= $jumlahData; $y++) {
- ?>
- <tr>
- <td>Nama</td>
- <td>:</td>
- <td><input type="text" name="nama" id="nama" autocomplete="off"></td>
- <td>Jurusan</td>
- <td>:</td>
- <td><input type="radio" name="radiobutton">RPL</td>
- <td><input type="radio" name="radiobutton">TKJ</td>
- <td><input type="radio" name="radiobutton">MM</td>
- <td><input type="radio" name="radiobutton">AV</td>
- <td><input type="radio" name="radiobutton">TITL</td>
- <td><input type="radio" name="radiobutton">TOI</td>
- </tr>
- <?php } } ?>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement