
Toledoh
Enthusiast
Dec 12, 2011, 4:17 PM
Post #2 of 4
(627 views)
Shortcut
|
|
Re: [Toledoh] Error in error checking
[In reply to]
|
Can't Post
|
|
Hi All, I think the issue is something to do with this;
$alertsAndErrors = ""; if (!@$_REQUEST['title']) { $alertsAndErrors .= "Please specify title!<br/>\n"; } if (!@$_REQUEST['email']) { $errorsAndAlerts .= "You must enter your email!<br/>\n"; } else if(!isValidEmail(@$_REQUEST['email'])) { $errorsAndAlerts .= "Please enter a valid email (example: user@example.com)<br/>\n"; } if (!@$_REQUEST['content']) { $alertsAndErrors .= "Please ask your question!<br/>\n"; } If I remove that check, the site performs fine (but doesn't check the email...) Cheers, Tim Forrest Toledoh Enterprises www.toledoh.com.au
|