How do you sen an array to another script?
Posted 21 July 2006 - 10:22 AM
I have a header like so: header("Location: errors.php?err=$errors");
Where $errors is an array.
When i run this it goes to a site with this address: /errors.php?err=Array
How do i pass an array properly?
Posted 21 July 2006 - 10:26 AM
$errors = serialize($errors);
then when you retrieve the errors unserialize, them:
$errors = unserialize($_GET['errors']);
However Id suggest you use a cookie/sessions instead rather then sending the errors through the url.
Posted 21 July 2006 - 11:18 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users