fixed bugs that prevented proper grading.

This commit is contained in:
Joshua Ashton
2025-02-14 05:08:06 -07:00
parent fcbe71e62b
commit 6f63a4afb8
30 changed files with 95 additions and 87 deletions
View File
View File
View File
View File
+19
View File
@@ -0,0 +1,19 @@
<!doctype html>
<html lang="en">
<head>
<title>Dummy Title</title>
<link href="css/styles.css" type="text/css" rel="stylesheet">
<script src="js/index.js"></script>
</head>
<body>
<h1>Hello cruel world!</h1>
<form method="get">
<input name="something1" placeholder="Enter Something 1">
<input name="something2" placeholder="Enter Something 2">
<button <?php echo 'type="submit"'; ?>>Submit</button>
</form>
</body>
</html>
View File
View File
View File
View File
View File
View File
+26
View File
@@ -0,0 +1,26 @@
<!doctype html>
<html lang="en">
<head>
<title>Dummy Title</title>
<link href="css/styles.css" type="text/css" rel="stylesheet">
<script src="js/index.js"></script>
</head>
<body>
<h1>Hello cruel world!</h1>
<form method="get">
<input name="fname">
<input name="lname">
<button>Submit</button>
</form>
<?php
if (isset($_GET['fname'])) {
echo '<p>' . $_GET['fname'] . '</p>';
echo '<p>' . $_GET['lname'] . '</p>';
}
?>
</body>
</html>
View File
View File