0% found this document useful (0 votes)
80 views5 pages

Nama: I Made Bagus Surya Wirayuda Nim: 1805551141: HTML Lang Charset Content Name Content

This document contains code for an HTML form to collect student biodata including name, NIM, gender, address, email, phone number, and date of birth. It also contains code for a PHP page that displays the submitted form data. The form uses inputs like text, radio buttons, number and date to collect the information, which is then displayed on the PHP page when submitted.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views5 pages

Nama: I Made Bagus Surya Wirayuda Nim: 1805551141: HTML Lang Charset Content Name Content

This document contains code for an HTML form to collect student biodata including name, NIM, gender, address, email, phone number, and date of birth. It also contains code for a PHP page that displays the submitted form data. The form uses inputs like text, radio buttons, number and date to collect the information, which is then displayed on the PHP page when submitted.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Nama : I Made Bagus Surya Wirayuda

Nim : 1805551141

(form2.html)

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Form Biodata</title>
</head>
<style>
div {
border: 1px solid black;
background-color: rgb(173, 184, 216);
padding-top: 50px;
padding-right: 30px;
padding-bottom: 50px;
padding-left: 80px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
body {
background-color: rgb(173, 184, 216);
}
</style>

<body>

<div>
<form action="Hasil.php" method="post">
Isi form mahasiswa dibawah ini<br>

<table>

<tr>
<td>Nama :<input type="text" name="nama"></td>
<td></td>
</tr>

<tr>
<td>Nim :<input type="text" name="nim"></td>
<td></td>
</tr>

<tr>
<td>Jenis Kelamin : <input type="radio" name="jenis-kelamin"
value="Laki-Laki"> Laki-Laki
<input type="radio" name="jenis-kelamin" value="Perempuan">
Perempuan </td>
<td></td>
</tr>

<tr>
<td>Alamat :<input type="text" name="alamat"> </td>
<td></td>
</tr>

<tr>
<td>email :<input type="text" name="email"> </td>
<td></td>
</tr>

<tr>
<td>no hp :<input type="number" name="nohp"> </td>
<td></td>
</tr>

<tr>
<td>Tanggal Lahir :<input type="date" name="tanggallahir"></td>
<td></td>
<td>
</tr>

<tr>
<td><input type="submit" name="submit" value="submit">
<input type="reset" name="reset" value="batal"></td>

</tr>

</table>
</div>

</form>

</form>

</body>
</html>

(hasil.php)

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hasil biodata</title>
</head>
<style>
body{
border: 2px solid black;
background-color: rgb(173, 184, 216);
padding-top: 50px;
padding-right: 30px;
padding-bottom: 50px;
padding-left: 80px;
font-size: x-large;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
</style>
<body>

<?php
$nama =$_POST['nama'];
$nim =$_POST['nim'];
$jeniskelamin =$_POST['jenis-kelamin'];
$alamat =$_POST['alamat'];
$email =$_POST['email'];
$nohp =$_POST['nohp'];
$tanggallahir =$_POST['tanggallahir'];

echo "hasil data yang diinputkan adalah<br><br>


Nama :$nama <br><br>
Nim :$nim <br><br>
Jenis Kelamin :$jeniskelamin<br><br>
Alamat :$alamat<br><br>
Email :$email<br><br>
No hp :$nohp<br><br>
Tanggal Lahir :$tanggallahir";

?>

</body>

</html>

You might also like