PHP Basics In Pictures
  1. Create a page called presidents.html and save it in the PRACTICEPHP folder.

    The page should have this code:

    <h3>Who were our three greatest presidents?</h3>

    <input type="text" name="prez1">
    <p>
    <input type="text" name="prez2">
    <p>
    <input type="text" name="prez3">
  2. Add a <form> tag that specifies the form action as:

    http://www.yourwebsite.com/phpscripts/presidents.php
  3. Create a script called presidents.php that:

    - Requests the names entered in the input boxes on presidents.html.

    - Checks to see if the names "George Washington" or "Abraham Lincoln" were input.

    - If either name was input, the script prints out all three names in an HTML table with a gray background.

    - If neither name was input, it prints:

    What about George Washington or Abraham Lincoln? Shouldn�t they be in the list?