Quote:
Originally Posted by subnet_rx
What's the proper way to check an array inside the $_POST array? So, $_POST['x']['i']
Right now I'm using:
for($i=0; $i<$outcomes_no; $i++)
{
$outcomes[$i] = $vbulletin->input->clean_gpc('p', 'outcome[$i]', TYPE_NOHTML);
}
But that is doing nothing.
|
its going to depend on the nature of your variable, but basically the clean rountine process an array at once.
PHP Code:
$outcomes = $vbulletin->input->clean_gpc('p','x','TYPE_ARRAY_NOHTML)
The second argument to the clean_gpc method is the name of the variable you are requesting.