This is almost certainly due to the new superglobals arrays which are used in newer versions of php. in short, you will not be aqble to use the value 'name' from a posted form by simply refering to '$name', but should rather use '$_POST["name"]'.See the php manual for more info.
To solve this issue with your older app: edit php.ini find 'register_globals', this will probably be set to 'off' change it to 'register_globals = on' Cheers Scott Qmail List wrote: > Hello List, > > I'm putting a php app that has been off-line for about 18 months back > on-line. During my absence from php I had heard about some security issues, > so figured I'd try the latest 4.2.3 release. > > Sessions and the DB are fine, but GET/POST vars are continually empty. I > mean a form submission from .html to .php (about the simplest thing > possible) the variables are not getting populated with their form values. > > Actually, phpinfo() does show the variables and their values if I throw it > in the .php file. But tailing the mysql log shows the following: > > SELECT * FROM users WHERE username='' AND password='' > > from this code. > > $query = mysql_query("SELECT * FROM users WHERE username='$username' AND > password='$password'"); > > > Regards, Thx > > -- //--------------------------------------------// // Scott Houseman // // Jam Warehouse http://www.jamwarehouse.com/ // // Smart Business Innovation // // +27 21 4477440 / +27 82 4918021 // //--------------------------------------------// -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php