Code:
<?php
function isInjected($str) {
$injections = array('(\n+)',
'(\r+)',
'(\t+)',
'(%0A+)',
'(%0D+)',
'(%08+)',
'(%09+)'
);
$inject = join('|', $injections);
$inject = "/$inject/i";
if(preg_match($inject,$str)) {
return true;
}
else {
return false;
}
}
$email_address = $_REQUEST['email_address'] ;
$comments = $_REQUEST['comments'] ;
// Edit with your email.
else {
mail( "[email protected]", "Done",
$comments, "From: $email_address" );
header( "Location: index.html" );
}
?>
I can not seem to get this to work the correct way. Does anybody know how to make it work?
The error I get is
Code:
Parse error: syntax error, unexpected T_ELSE in /home/branden/public_html/themes/fastfolio/send.php on line 25







