Are you trying to reference these form vars from within a function? If so then, from that point it depends on how you're trying to reference them. Shooting in the dark here, but there could be a variety of scenarios.
Scenario 1You program with register_globals on. Which means if you have a form variabled named "bar" then you just directly reference it with $bar in your script. If you try to do this inside a function it won't work due to scope. So you'd need to globalize it, like below.
<br />function foo() {<br /> global $bar;<br /> echo $bar;<br />}<br /> Scenario 2You program with register globals off. Which means you might reference your form variables by using the $HTTP_POST_VARS and $HTTP_GET_VARS arrays. For this to work, you need to globalize those arrays as well to get access to your form vars in your functions.
<br />function foo() {<br /> global $HTTP_POST_VARS,$HTTP_GET_VARS;<br /> echo $HTTP_POST_VARS['bar'];<br />}<br />If it turns out to be a scenario 2 issue, then if your running at least version 4.1 of PHP then you can make it easier on yourself by using the $_POST and $_GET arrays. These are superglobals so you don't need to globalize them to get access to the keys within. So the following would work, just like scenario 2.
<br />function foo() {<br /> echo $_POST['bar'];<br />}<br />Of course, there could be a scenario 3 in where I totally missed the mark
