What is the best way that I can pass an array as a url parameter? I was thinking if this is possible:
$aValues = array();
$url = \'http://www.example.com?a
please escape your variables when outputting (urlencode).
and you can’t just print an array, you have to build your url using a loop in some way
$url = 'http://example.com/index.php?'
$first = true;
foreach($aValues as $key => $value) {
if(!$first) $url .= '&';
else $first = false;
$url .= 'aValues['.urlencode($key).']='.urlencode($value);
}