generated from Templates_CodeFirst/templateHtmlCss
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.1 KiB
35 lines
1.1 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>PHP Form Example</title>
|
|
</head>
|
|
<body>
|
|
<form action="process.php" method="POST">
|
|
<!--Required input for the last name -->
|
|
<label for="last_name">Last Name:</label>
|
|
<input type="text" id="last_name" name="last_name" required><br><br>
|
|
|
|
<!-- Required input for the first name -->
|
|
<label for="first_name">First Name:</label>
|
|
<input type="text" id="first_name" name="first_name" required><br><br>
|
|
|
|
<!--Input of type numer for the age -->
|
|
<label for="age">Age:</label>
|
|
<input type="number" id="age" name="age" min="0" step="1"><br><br>
|
|
|
|
<!--List for the gender -->
|
|
<label for="gender">Gender:</label>
|
|
<select id="gender" name="gender">
|
|
<option value="male">Male</option>
|
|
<option value="female">Female</option>
|
|
<option value="other">Other</option>
|
|
</select><br><br>
|
|
|
|
<!--Submit button -->
|
|
<input type="submit" value="Submit">
|
|
</form>
|
|
</body>
|
|
</html>
|