5 PHP Forms

Lab 5 - PHP with Forms

Goal

To gain experience processing form data in PHP.

For this class you'll again need to create a new folder lab5 and copy the existing code from lab 5 over.

Task

Add a form to the bottom of your homepage (index.php) and create a new file with PHP code to process data submitted through the form.

Here is the acceptance criteria:

  • The form shall contain both textboxes and buttons
  • The form shall be functional (clicking and entering text means that data is sent to the server)
  • The form shall be useful and meaningful
  • The form shall have validation on each field with at least two different types of validations present as well as providing an error or some indication that the data entered is incorrect.

Submission

  • Ensure that your lab 5 folder is uploaded to your repo and visible from the browser.
  • Submit your work via Assignments-->Lab 5 PHP Forms before the due date