script problems

Sharky Forums


Results 1 to 3 of 3

Thread: script problems

Threaded View

  1. #1
    Goldfish climberfreak2003's Avatar
    Join Date
    Jan 2002
    Location
    College Station, TX
    Posts
    85

    script problems

    I just started reading this book on php and im having trouble with one of its' examples. Here is the code:
    FIRST PAGE
    Code:
    <HTML>
    <HEAD></HEAD>
    <BODY>
    <FORM METHOD="GET" ACTION="text.php">
    Who is your favorite author?
    <INPUT NAME="Author" TYPE="TEXT">
    <BR>
    <BR>
    <INPUT TYPE=SUBMIT>
    </FORM>
    </BODY>
    </HTML>
    SECOND PAGE
    Code:
    <HTML>
    <HEAD></HEAD>
    <BODY>
    Your favorite author is:
    <?php
    echo $Author;
    ?>
    </BODY>
    </HTML>
    When I hit the "Submit Query" button on the first page the php page tells me that the variable Author is undefined. The variables are exactly the same between the two pages, i don't know what else could be going wrong. Any help would be great.
    Last edited by climberfreak2003; 09-08-2002 at 11:59 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •