I have a small error handling function that informs should inform the user of the error whilst on a redirect.
At present, it either redirects but does not pass through the variables $error and $prize or I can echo out the $error from the function.
I need to be able to redirect the user and then on the new page echo out the variable. Can i do this?
function error($error, $prize)
{
header('Location: ' . $form);
echo $error . '<br />';
echo $prize;
exit;
} // end error handler
You could do it through GET:
destination page: