Re: HELP - varible not passing from form
| From: | aRZed | Date: | Mon, 23 Aug 2004 09:00:59 +0000 |
| Subject: | Re: HELP - varible not passing from form | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-24449@lists.php.net to get a copy of this message | ||
Ted Shaw wrote:
G'day - I've just installed PhP 4.3.8 for win - running Win2000. Php seems to running ok but when I attempt to use "<form method="get" action="http://localhost/filename"> What is your name: <input type="text" name="Name"> <input type="submit"> The info I type into the text box on the htm page gets passed on the url to the php page, but I get a "Variable Undefined" error in body of php page. There's no problem with case in variable name. Have tried everything I know (which is not much) Any help greatly appreciated.register_globals is normally turned off on a standard installation. if you use $Name: try using $_GET["Name"] instead of $Name. It is generally a good idea to use those arrays instead of turning register_globals on.