Page 1 of 1

Help with form processing.

Posted: Fri Jan 03, 2003 3:48 am
by WakeAngel
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?

Posted: Fri Jan 03, 2003 4:44 am
by qads
try this: $_GET[Author];

and read this: http://www.devnetwork.net/forums/viewtopic.php?t=511