I checked what was getting echoed at the end and all the variables are getting echoed so those variables are getting passed through the check_form() function.
I did some further tests and I found that $old value was not getting assigned anything
The problem lies in this bit I believe
- PHP: Select all
else if(!ereg("^[A-Za-z]{2,30}$",$first_name)) {
$error['first_name'] = true;
$print_again = true;
$old_value = $get_first_name; //This bit is causing the error
$message="<li><span><b>Forename</b></span> must contain letters only</li>";
}