Hi all,
I've got global vars turned off, using php 4.3.10 loaded on a windows 2003 server running apache 2.0.52.
Before php 4.3, I used to be able to reference submitted vars with just $var1, $var2, etc. Now, of course, I need to use something like $POST['var1'], $POST['var2'], etc.
I need to get the data submitted from about 20+ different vars, and use/manipulate all those many different times within a script.
How can I "convert" the $POST['var1'] to just $var1 so that I don't need to keep using $POST['var1'] every place i need it?
I want to do something "clean" like this:
foreach ($_POST['vararray']) {
$var = $_POST['vararray'];
}
Sorry if this isn't worded correctly, I'm hoping someone understands what I'm trying to accomplish here. I just can seem to get the syntax correct.
Any help would be greatly appreciated.
Thanks.