Help with form processing.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
WakeAngel
Forum Newbie
Posts: 1
Joined: Fri Jan 03, 2003 3:48 am
Location: Crystal Lake, IL
Contact:

Help with form processing.

Post 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?
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

try this: $_GET[Author];

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