| |
|
| |
 |
|
|
| |
Request for Information
| |
if(!empty($_POST['Submit']))
{
if(strlen($_POST['firstname']) == 0)
{ $error_msg ="Please fill in all the required fields "; }
if(strlen($_POST['lastname']) == 0)
{ $error_msg ="Please fill in all the required fields "; }
if(strlen($_POST['company']) == 0)
{ $error_msg ="Please fill in all the required fields "; }
if(strlen($_POST['address1']) == 0)
{ $error_msg ="Please fill in all the required fields "; }
if(strlen($_POST['postalcode']) == 0)
{ $error_msg ="Please fill in all the required fields "; }
if(strlen($_POST['city']) == 0)
{ $error_msg ="Please fill in all the required fields "; }
if(strlen($_POST['country']) == 0)
{ $error_msg ="Please fill in all the required fields "; }
if(strlen($_POST['email']) == 0)
{ $error_msg ="Please fill in all the required fields "; }
//if(!ereg("^[_a-zA-Z0-9-]+(\.[*@([a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+\.)+([a-zA-Z]{2,4})$", $_POST['mailadres']))
// { $error_msg .="- Voer een geldig e-mail adres in. "; }
if(!empty($error_msg))
{
//Een van de velden werd niet goed ingevuld
echo $error_msg;
echo " Click here to complete your information request
";
}
else
{
$recipient = "info@infoware.net";
$subject = "Request for Information via website";
$header = "From: " . $mailadres . "\n";
$mail_body = "Request sent on " . date("d-m-Y") . " at " . date("H:i") . ".\n";
$mail_body .= "First name: " . $_POST['firstname'] . "\n";
$mail_body .= "Last name: " . $_POST['lastname'] . "\n";
$mail_body .= "Title: " . $_POST['title'] . "\n";
$mail_body .= "Company: " . $_POST['company'] . "\n";
$mail_body .= "Address 1: " . $_POST['address1'] . "\n";
$mail_body .= "Address 2: " . $_POST['address2'] . "\n";
$mail_body .= "Postal Code: " . $_POST['postalcode'] . "\n";
$mail_body .= "City: " . $_POST['city'] . "\n";
$mail_body .= "Country: " . $_POST['country'] . "\n";
$mail_body .= "Phone: " . $_POST['phone'] . "\n";
$mail_body .= "Email: " . $_POST['email'] . "\n";
$mail_body .= "Website: " . $_POST['website'] . "\n";
$mail_body .= "I would like more information about: " . "\n" . $_POST['infoware'] . "\n" . $_POST['juniper'] . "\n" . $_POST['barracuda'] . "\n" . $_POST['keriomailserver'] . "\n" . $_POST['keriofirewall'] . "\n" . $_POST['firstclass'] . "\n" ;
$mail_body .= "Remarks:\n";
$mail_body .= $_POST['remarks'] . "\n\n";
$mail_body .= "\n\n -- End of Message --";
mail($recipient, $subject, $mail_body, $header);
echo "Your request has been sent successfully.
We will contact you as soon as possible.
";
//echo "Ga terug";
}
}
else
{
?>
|
|
|
|
|
|
|