I got a php/html file pair that was written assuming globals was turned on. I'm running with them off. The HTML form has several <input> tags and the name= is a subscripted variable, like this:
<form method-'post' action-'some.php'>
<input type='submit' type='text' value='var[0]' name='N1' ...
<input type='submit' type='text' value='var[1]' name='XYZ' ...
and so on. The php script accesses these values as
$var[0], $var[1], and can index them like so:
for ($1=0;$i<10;$i++) {
echo $var[$i];
}
and everything works just fine. However, with globals off,
I have not been able to get this to work. I know I could
loop through _POST and extract each key->value but I was wondering if there is an easy way to do this. Essentially,
what I would like is something as easy as:
$list =$_POST['var[]'];
or some such - I'm sure there is an easy way to do this without reworking the code.
thanks for any help,
ron