How can i pass a post array to a functing then pull out the params i.e
so i am posting the following.
url=http%3A%2F%2Fwww.facebook.com%2Ftest&userId=680410999&location=Cardiff&lang=en_US&social=facebook
can i grab it like this from the function????
function login($_POST){
//then output the var her.
$_POST['url']; etc
}
this is to save me doing the following in my ajax.php file
function login($_POST['url'],$_POST['userId'],$_POST['location'],$_POST['lang']){
}
any help pls