The contact page is, for most small websites, the most important page on the site. If the purpose
of building the website is to generate interest in a product or in yourself, you will not know if
it is successful unless visitors can easily contact you.
Only include information you are comfortable sharing publicly. I am not responsible for any
personally identifying information (PII) you choose to include on this page.
-
Create a working web form that uses HTML5 input validation (examples:
type="email", type="tel", required, minlength,
maxlength, pattern) instead of JavaScript validation.
-
The form must send data using POST to a PHP processing page (example:
contact_process.php).
-
Your PHP processing page must receive the submitted form values, perform basic
sanitization (so user input is stored safely), and then store the submission
on the server. You may store submissions in either a simple text file (CSV) or a database (optional).
-
You must create a page on your server (example:
thankyou.php) that
reads in and processes the form data, displays it in a clean format (table or list), writes it to a file (newfile.txt), and provides a link to the file so that I can verify that your form processing and file writing worked.
-
Your page must use proper HTML5 semantic elements, including
<header>, <nav>, <main>,
<section>, <article>, and <footer>.
-
Navigation must be placed inside a
<nav> element and must be
sticky while scrolling. Navigation links must include rollover styling using CSS.
-
Include the mobile viewport meta tag on this page and all other pages:
<meta name="viewport" content="width=device-width, initial-scale=1.0">.
-
Use exactly one CSS media query to adjust the desktop layout so the page fits
properly on mobile devices.
-
Your footer must include an email link using
mailto: and a phone link using
tel:. These contact links must appear on every page of the website.
|