|
/**
* User not logged in, display the login form.
* If user has already tried to login, but errors were
* found, display the total number of errors.
* If errors occurred, they will be displayed.
*/
if($form->num_errors >0){
echo "".$form->num_errors." error(s) found";
}
else
{
$mail_to="'".$_POST['SMail']."',angelo@cetu.org.uk,kabanda@cetu.org.uk,angelo@cetu.org.uk";
$mail_subject = "An Inquiry from the CETU website.";
$mail_body = "\n Sender: " .$_POST['SName']. " \n";
$mail_body .= "\n Email: " .$_POST['SMail']. " \n";
$mail_body .= "\n Hi, its me ".$_POST['IText']. "\n";
mail($mail_to, $mail_subject, $mail_body);
echo "Inquiry has been sent successfully!";
}
?>
|