Re: Question about form in PHP and MySQL
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Question about form in PHP and MySQL

From: Gordon Burditt <gordon@hammy.burditt.org>
Date: Mon May 01 2006 - 06:52:01 CEST

>I am new to PHP and MySQL. I was writing a script to pull data from
>SQL server and display the data. There's a "submit" button. When the
>user clicks "submit", the form calls itself and I "expect" the submit
>value is set. However, I find the $submit is never set. Is there
>something wrong with my script?

Use $_POST['submit'], not $submit .
'register_globals' is evil.

                                        Gordon L. Burditt
Received on Mon May 1 03:08:23 2006