require('template.html'); print_header('Contact Us', ''); $bad = array("\n", "\r"); $name = isset($_POST['name']) ? str_replace($bad, '', trim($_POST['name'])) : ''; $company = isset($_POST['company']) ? str_replace($bad, '', trim($_POST['company'])) : ''; $email = isset($_POST['email']) ? str_replace($bad, '', trim($_POST['email'])) : ''; $subject = isset($_POST['subject']) ? str_replace($bad, '', trim($_POST['subject'])) : ''; $message = isset($_POST['message']) ? str_replace($bad, '', trim($_POST['message'])) : ''; if (sizeof($_POST) > 0) { if ($name == '' || $email == '' || $subject == '' || $message == '') { print '
Please be sure to fill out all the required fields.
'; $error = TRUE; } else if (!preg_match('/[a-z0-9_\-\.\+]+@[a-z0-9\-\.]+/i', $email)) { print 'Invalid email address supplied.
'; $error =TRUE; } else { if (!mail('contact@siriushosting.com', $subject, $message, "From: $name from $company <$email>\r\n")) { print 'Sending failed. The webmaster has been notified, please try again later.'; error_log("message from $name <$email> failed to send"); $error = TRUE; } else { print '
Your message has been sent. Thank you.
'; print_footer(); exit(); } } } if (!isset($error)) { ?>If you are an existing customer, please sign in to the support section and use our helpdesk system to submit a ticket. If you are intested in signing up for our service, please use the sign-up form here. For any other questions or comments please use the following form.
} ?> print_footer(); ?>