Help with form processing.
Posted: Fri Jan 03, 2003 3:48 am
Hi,
I recently set up the Apache, PHP, and MySQL server on my computer to test my scripts and whenever I use something like this:
1: <HTML>
2: <HEAD></HEAD>
3: <BODY>
4: <FORM method="get" action="text.php">
5: <INPUT TYPE="TEXT" NAME="Author">
6: <INPUT TYPE="Submit">
7: </BODY>
8: </HTML>
Submiting to this text.php
1: <HTML>
2: <HEAD></HEAD>
3: <BODY>
4: <?php
5: echo $Author;
6: ?>
7: </BODY>
8: </HTML>
I get this error: Notice: Undefined variable: Author in c:\program files\apache group\apache\htdocs\text.php on line 5
Is there something that I am doing wrong or did I configure my server improperly maybe?
I recently set up the Apache, PHP, and MySQL server on my computer to test my scripts and whenever I use something like this:
1: <HTML>
2: <HEAD></HEAD>
3: <BODY>
4: <FORM method="get" action="text.php">
5: <INPUT TYPE="TEXT" NAME="Author">
6: <INPUT TYPE="Submit">
7: </BODY>
8: </HTML>
Submiting to this text.php
1: <HTML>
2: <HEAD></HEAD>
3: <BODY>
4: <?php
5: echo $Author;
6: ?>
7: </BODY>
8: </HTML>
I get this error: Notice: Undefined variable: Author in c:\program files\apache group\apache\htdocs\text.php on line 5
Is there something that I am doing wrong or did I configure my server improperly maybe?