I've decided to recode all my variables on my pages as PHP 4.3 now demands they be (unless you have register_globals = on) as :
I'm doing this in advance in case any server I am on has register_globals = off (as is now recommended). Thus, using just $var_name is no longer sufficient to obtain its value. You must fetch the value as shown above.
The problem is, however, when doing things like a trim() on a variable, e.g. "FirstName" this will not obviously work :
$FirstName = trim(\"$_POST['FirstName']\");
Nor will :
$FirstName = trim($_POST['FirstName']);
The trim() function seems to demand a string literal. The only way I can see around this issue is to do :
$FirstName = $_POST['FirstName'];
$FirstName = trim(\"$FirstName\");
This seems like a double operation on any variable that I want to manipulate, a lot of extra coding.
Anybody have a better idea?
Thanks in advance.