PHP Basics In Pictures
Employ conditional logic
If statements
  1. Create a Web page with this code:

    <html>
    <head>
    <title>If Statements</title>
    </head>

    <body>

    <h2>Acme Logon Page</h2>

    <form method="post" action="http://www.yourwebsite.com/phpscripts/if.php">

    <h2>Enter Password:</h2>

    Password: <input type="password" name="password"><p>

    <input type="submit" value="Submit">

    </form>

    </body>
    </html>
  2. Save the page as if.html in the PHPSCRIPTS folder.
  3. Upload it to the home directory in your Web site.