Hi,
I've got a problem getting the values out of the HTTP_POST_VARS...
On the first page I'm clicking checkboxes that have name in the following format:
name=$row[Type][$i]
where $row[Type] = mysql_fetch_array($result)
When I submit them, they are passed onto the next page, but I can't get them out...
print_r($HTTP_POST_VARS);
This leads to the following results:
Array ( [Regression] => Array ( [0] => on [1] => on [2] => on [3] => on ) [Functional] => Array ( [0] => on [1] => on ) )
If I explicitly type
echo "{$HTTP_POST_VARS['Regression'][0]}";
I get the value 'on' - super!!! But I need to do this by using variables to get the value.
eg:
//Using same query from previous page
while ($row = mysql_fetch_array($result))
{
for ($i=0; $i < $counter; $i++){
echo "{$HTTP_POST_VARS['$row[Type]'][$i]}";
}
}
Please, please, any help would be appreciated...I'm hoping that it's just the quotes I'm using or something simple