Trouble passing variables in PHP 4.1.2!!!
Posted: Thu Nov 14, 2002 5:56 am
Right, so I got my php script working with PHP 4.2 both with the development php settings and the recommended production settings and then what happens? I discover that the server I'll be running it on only has 4.1.2!
Register Globals is ON
I have removed $_POST['xx'] from my scripts as I believe the correct way in this version is HTTP_POST_VARS[ ]. I've tried this and it doesn't work, but as register globals is on I'd assume I could just pass the variables about as I like.
I'm hoping that this is just a case of my own stupidity but as all my scripts were running near perfectly until 4.1 got involved I'm just a little peeved to have encountered this setback. Anyone had a similar problem?
Submit form
Test page to receive variable
(this throws up the following error: Parse error: parse error, expecting `','' or `';'' in submitcheck.php on line 2)
or
Nothing will display at all unless there is something in this variable and there isn't.
Yours confused as ever...
Register Globals is ON
I have removed $_POST['xx'] from my scripts as I believe the correct way in this version is HTTP_POST_VARS[ ]. I've tried this and it doesn't work, but as register globals is on I'd assume I could just pass the variables about as I like.
I'm hoping that this is just a case of my own stupidity but as all my scripts were running near perfectly until 4.1 got involved I'm just a little peeved to have encountered this setback. Anyone had a similar problem?
Submit form
Code: Select all
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="reset" value="Start Over">Code: Select all
echo HTTP_POST_VARSї"Submit"];or
Code: Select all
echo $Submit;Yours confused as ever...