RE: [PHP] Form Problem

From: Date: Wed, 09 Jan 2002 20:51:46 +0000
Subject: RE: [PHP] Form Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-79954@lists.php.net to get a copy of this message
I had the same problem happen to me a couple of days ago. A form that has been working has stopped working all of a sudden - all fields would be submitting as blank (undefined). Unfortunately, I was not able figure out what the problem was :-( I got it down to the line that was causing my form to stop submitting - a <BASE> tag. I still do not understand why. I ended up deleting the entire directory, re-uploading the files and they started working all of a sudden. I know it's not much help, just my 2 cents. Sincerely, Pavel Kharitonov Project Manager Intechnic Corporation http://www.intechnic.com Phone: (847) 816-1231 -----Original Message----- From: Chris Kwasneski [mailto:ragabash@adelphia.net] Sent: Wednesday, January 09, 2002 1:30 PM To: php-general@lists.php.net Subject: [PHP] Form Problem I'm having a problem with a HTML form. When it gets submitted, I keep getting an undefined variable error message. And a blank page (aside from a 'Hi' written on it...). I don't think its a problem with my install of PHP as other PHP code is running fine, but can't get it to print out this name. I'm probably missing something simple, but I just can't figure it out. Any help would be appreciated. the form: <html> <head> <title>My Form</title> </head> <body> <form action="test2.php" method="GET"> My name is: <br> <input type="text" name="YourName"> <input type="submit" name="submit" value="Submit" /> </form> </body> </html> Test2.php file: <html> <head> <title>Form test...</title> </head> <body> Hi <?php echo "$YourName"; ?> </body> </html> The url that is getting passed to the file: http://localhost/test2.php?YourName=Chris&submit=Submit The error message I'm getting: [Wed Jan 09 14:24:47 2002] [error] [client 127.0.0.1] PHP Warning: Undefined variable: YourName in c:\program files\apache group\apache\htdocs\test2.php on line 10 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#79954) next »