Added in error hovering to the form and fixed some warnings

This commit is contained in:
2022-01-11 19:51:53 +00:00
parent 4e7eaa4990
commit 4764deb58f
11 changed files with 355 additions and 126 deletions
+6 -4
View File
@@ -102,7 +102,7 @@ $app->post('/contact', function (Request $request, Response $response)
$headers1 .= "Content-Type: text/html; charset=UTF-8\r\n";
$message1 = "
<html>
<html lang=\"en\">
<head>
<title>{$data['subject']}</title>
<style>
@@ -163,6 +163,7 @@ $app->post('/contact', function (Request $request, Response $response)
<td>{$data['lName']}</td>
<td><a href=\"mailto:{$data['email']}\">{$data['email']}</a></td>
<td>{$data['subject']}</td>
<td>{$data['message']}</td>
</tr>
</table>
<br>
@@ -181,7 +182,7 @@ $app->post('/contact', function (Request $request, Response $response)
$headers2 .= "Content-Type: text/html; charset=UTF-8\r\n";
$message2 = "
<html>
<html lang=\"en\">
<head>
<title>{$data['subject']}</title>
<style>
@@ -226,7 +227,7 @@ $app->post('/contact', function (Request $request, Response $response)
</style>
</head>
<body>
<p>{data['fName']} {data['lName']} filled in the form on the website, here is what they sent.</p>
<p>{$data['fName']} {$data['lName']} filled in the form on the website, here is what they sent.</p>
<table>
<thead>
<th>Firstname</th>
@@ -240,6 +241,7 @@ $app->post('/contact', function (Request $request, Response $response)
<td>{$data['lName']}</td>
<td><a href=\"mailto:{$data['email']}\">{$data['email']}</a></td>
<td>{$data['subject']}</td>
<td>{$data['message']}</td>
</tr>
</table>
</body>
@@ -250,4 +252,4 @@ $app->post('/contact', function (Request $request, Response $response)
return $response->withStatus(201);
});
$app->run();
$app->run();