Hi there,
I have a php script that does some form input validation. As it verifies
each field if the field has incorrect data, it appends an error message to
an $error array. E.g.
if (an_error = true) {
$errors.="<tr><td>You have note entered a surname. This is mandatory date
of birth incorrectly.</td></tr>";
}
Previously I had always had the HTML error page code contained within the
same script, but now I am moving it out to make maintenance easier.
When validation completes there is now a statement that says
if ($errors!="") {
header("Location: ./error_page.php");
}
However, how can I pass the errors array to the error_page. I want to be
able to list each error individually.
Forgive me if this is a silly easy question. I have only been doing PHP for
about a week.
Thanks in advance.
Kind regards
Dave