Re: [PHP] 4.0.2 = 4.2.3, form vars are empty?

2002-09-28 Thread Justin French
turn register globals ON on php.ini (they now default to off), then read the 1000's of threads about register globals, missing/empty form variables, super global arrays, etc etc in the archives. post vars are found in $_POST, session in $_SESSION, get in $_GET, etc etc Justin French on

[PHP] 4.0.2 = 4.2.3, form vars are empty?

2002-09-27 Thread Qmail List
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

Re: [PHP] 4.0.2 = 4.2.3, form vars are empty?

2002-09-27 Thread Scott Houseman
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

Re: [PHP] 4.0.2 = 4.2.3, form vars are empty?

2002-09-27 Thread ed
I recently have experienced the same thing in upgrading from 4.0.0 to 4.2.3 All variables are now stored globally and can only be retrieved using $_POST['var'] or $_GET['var'] declarations i.e. $username = $_POST['username']; or get if your method was get in the form. On Fri, 27 Sep 2002,