Hello all,
I have this:
foreach ($country as $value){
The contents of $country using print_r is this:
Array
However, when I print_r all of POST variables it shows me country as single array rather than an array within an array as the above suggests?
Array (
[entry] => http://www.google.com
[SelectLocation] => Canada
[country] => Array (
[0] => AL
[1] => AS
)
[type] => country
[destination] => http://yahoo.co.uk
[default] => http://yahoo.com
[loginsubmit] =>
)
What's going on?
Thanks all
Update
I have done this:
$country = sanitize($_POST['country']);
So the contents of $_POST['country'] is $country, right?!