My advice would be to use the php header() function to redirect your visitors to different pages based on the type of error. For example, an incorrect security code displays a message with the following code on line 120:
Code:
if($key == "security_code" && $value != ($_SESSION['security_code'])) {
$results[] = "Wrong security code!";
$bademail = true;
}
It could be changed to redirect the user to a new page by changing it to:
Code:
if($key == "security_code" && $value != ($_SESSION['security_code'])) {
header('Location: http://www.yoursite.com/badcodepage.html');
}
Performing this change would effectively eliminate logging if the form is not filled out correctly, so the entire logging section would have to be moved up to be processed sooner. Overall, this is a quick and dirty way to achieve custom pages. |