Initial Commit

This commit is contained in:
2026-01-24 22:12:41 -05:00
parent 721b78010b
commit 09bda4fb1c
5 changed files with 44 additions and 0 deletions
+26
View File
@@ -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

+18
View File
@@ -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