<html>
<head>
<title> Form 1 </title>
</head>
<body>
<form name="form1" method="POST" action="inputdata.php">
Nama : <input type="text" name="nama" value=""><br><br>
Kelas : <input type="text" name="kelas" value="" maxlength="2"><br><br>
No : <input type="text" name="nomor" value=""><br><br>
Hobby : <input type="text" name="hobby" value=""><br><br>
Password : <input type="password" name="uio"><br><br>
<input type="submit" name="submit"
value="Submit"> <input type="reset"
name="reset" value="Reset">
</form>
</body>
</html>
Jadinya :
jangan lupa di save as,kasih nama contoh : nama.html pilih all files dan save
<head>
<title> Form 1 </title>
</head>
<body>
<form name="form1" method="POST" action="inputdata.php">
Nama : <input type="text" name="nama" value=""><br><br>
Kelas : <input type="text" name="kelas" value="" maxlength="2"><br><br>
No : <input type="text" name="nomor" value=""><br><br>
Hobby : <input type="text" name="hobby" value=""><br><br>
Password : <input type="password" name="uio"><br><br>
<input type="submit" name="submit"
value="Submit"> <input type="reset"
name="reset" value="Reset">
</form>
</body>
</html>
Jadinya :