Re: PHP,MySQL problem
| From: | Richard Davey | Date: | Wed, 14 Jan 2004 12:38:26 +0000 |
| Subject: | Re: PHP,MySQL problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174533@lists.php.net to get a copy of this message | ||
Hello Nicolai,
Wednesday, January 14, 2004, 12:14:09 PM, you wrote:
NE> Sorry, I should have done that from the beginning, but here it is. I have
NE> looked further on the variables and it seams like the name attribute
NE> "sumbit" (in the <form>) is not converted to the $submit variable when I
NE> if ($submit) {
You probably have Register Globals turned off (you should do anyway,
PHP by default has this setting now). That article looks like it
assumed they were turned on.
Simple solution: if ($_POST['submit'])
You'll need to do this for each variable you want to use that comes in
via the form.
--
Best regards,
Richard mailto:rich@launchcode.co.uk