Initial Commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Lab 3 Form</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<form action="submit.php" method="post">
|
||||
<label for="fname">First Name:</label>
|
||||
<input type="text" name="fname"><br>
|
||||
<label for="lname">Last Name:</label>
|
||||
<input type="text" name="lname"><br>
|
||||
<label for="city">City:</label>
|
||||
<input type="text" name="city"><br>
|
||||
<label for="province">Province:</label>
|
||||
<select name="province">
|
||||
<option value="Ontario">Ontario</option>
|
||||
<option value="Quebec">Quebec</option>
|
||||
<option value="Alberta">Alberta</option>
|
||||
</select><br>
|
||||
<button type="submit">Submit</button>
|
||||
</form>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 33 KiB |
Binary file not shown.
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Lab 3 Submit</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?php
|
||||
$fname = strip_tags($_POST['fname']);
|
||||
$lname = strip_tags($_POST['lname']);
|
||||
$city = strip_tags($_POST['city']);
|
||||
$province = strip_tags($_POST['province']);
|
||||
echo "<p>$fname $lname is from the city of $city, $province</p>";
|
||||
?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
Reference in New Issue
Block a user