just a little confused with what iv done here... hope someone may be able to help. recently rebuilt a box, installed php 4.2.2 onto redhat 8.0....
i have a sites which rely, among other things on their forms / posting / http uploads etc. if i post, for example from this form :
<form name="test" action="<? print $PHP_SELF; ?>" method="post">
<input type="submit" name="submit" value="submit">
<input type="hidden" name="somevariable" value="somevalue">
</form>
when i send this form, i used to be able to refer to the form post variables automatically, IE :
if ($somevariable == "somevalue"){
$object->dosomething("with $somevariable");
};
or '$HTTP_POST_VARS["somevariable"]' in place of '$somevariable'.
HOWEVER, now, i am only able to use :
if ($_VARS["somevariable"] == "somevalue"){
$object->dosomething("with ".$_VARS["somevariable"]);
};
which isnt really a problem, i know, but it means that all the sites iv written, which use the first method of referring to post variables (i know, i know, should have done it $_POST to start with)... dont work, basically.