Sunday, May 17, 2009

Exercise 7: User input for database access with PHP

  1. Create an HTML page with the form:
    <FORM METHOD="GET" ACTION="submit.php"> What's your name? <INPUT NAME="myname" SIZE=10>
    (Then press RETURN)
    </FORM>
  2. Then, create a PHP file named submit.php with the following code:
    <?php
    echo "Hello, ", $myname;
    ?>

No comments:

Post a Comment