Delta_Boy
04-28-2005, 08:20 PM
I cant see anything wrong with my PHP "syntax". I am attempting to create my first script by referring to a few others. Anyways, I get this error.
Parse error: parse error, unexpected '{' in...
I have tried moving the "{" to different locations but it still doesnt work.
The following is the code. The error is on the first line:
if (!eregi("^[[:alnum]][a-z0-9_.-]@[a-z0-9.-]+\.[a-z]{2,4}$",(stripslashes(trim($_POST['email'])))) {
$problem = TRUE;
} else {
$message = .= '<p>Please enter a valid email address!</p>';
}
Parse error: parse error, unexpected '{' in...
I have tried moving the "{" to different locations but it still doesnt work.
The following is the code. The error is on the first line:
if (!eregi("^[[:alnum]][a-z0-9_.-]@[a-z0-9.-]+\.[a-z]{2,4}$",(stripslashes(trim($_POST['email'])))) {
$problem = TRUE;
} else {
$message = .= '<p>Please enter a valid email address!</p>';
}