Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created Oct 14, 2019
Embed
What would you like to do?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Add new person</title>
</head>
<body>
<form method="post" action="add.php">
<label for="first_name">Name:</label>
<br>
<input name="first_name" required type="text" id="first_name"
placeholder="First name">
<br><br>
<label for="last_name">Last name:</label>
<br>
<input name="last_name" required type="text" id="last_name"
placeholder="Last name">
<br><br>
<label for="gender">Gender</label>
<select name="gender" required name="gender" id="gender">
<option value="">--Please select--</option>
<option value="M">Male</option>
<option value="F">Female</option>
</select>
<br><br><input type="submit" value="Save">
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment