Thread: Variables
View Single Post
  #3 (permalink)  
Old 16-02-2007, 09:07
Vickie Vickie is offline
Member
 
Join Date: Jan 2007
Location: Northamptonshire
Posts: 37
Default PHP Version is the problem

Hi,
I came unstuck on this one. There are security features in newer versions of PHP, and there is a big change to register globals, ie. variables from forms, etc. It is documented here:

http:// uk.php.net/register_globals

The main thing I found for my program is that every variable that came back from a POST style submit had to be prefaced like this $_POST['variableName'].

I found it easiest to do this kind of thing - Say you had a variable from a form called $name, rather than replace it all the way through, just put:

$name = $_POST['name'];

and then it will work for the scope of the function.

Vickie
Reply With Quote