I'm checking a form for errors, storing the errors in $errors, and then redirecting to an error page. Along with $error I'm also passing $subject & $comments - the two fields ini the submitted form, so that the form fields can be re-populated.
My problem is that with the following code, on the first variable after the ? appears to be passed back. I've checked that the variable data is valid by rearranging the order of the variables in the re-direct URL - they're all valid, but only the first one is ever passed back.
Any ideas would be very welcome.
if ($errors)
{
$url = "http://site/dir/errors.php?errors=$errors&subject=$subject&comments=$comments";
header("Location:" . $url);
exit;
}