Employ conditional logic
  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/cgi-bin/perlscripts/if.pl">

    <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 PERLSCRIPTS folder.
  3. Upload it to the home directory in your Web site.

Want ad-free tutorials like these for classroom use? Get them at Visilearn.com.