<?php
session_start();

// remember to set permissions for this script! If not, you
// may not get the email.....

$to = 'danny@swiftproductions.com.au';
$subj = 'Swiftproductions Contact Form';
$cr = "\n";

$name = $_POST['name'];
$company = $_POST['company'];
$telephone = $_POST['telephone'];
$email = $_POST['email'];
$messagebox = $_POST['messagebox'];
$web = $_POST['web'];
$graphic = $_POST['graphic'];
$print = $_POST['print'];
$updates = $_POST['updates'];
$general = $_POST['general'];
$seo = $_POST['seo'];


$body = 'Name: ' . $name . $cr . 'Company: ' . $company . $cr . 'Telephone: ' . $telephone . $cr;
$body = $body . 'email: ' . $email . $cr . 'Message Box: ' . $messagebox . $cr . $cr;
$body = $body . 'Web: ' . $web . $cr . 'Graphic: ' . $graphic . $cr . 'Print: ' . $print . $cr;
$body = $body . 'Updates: ' . $updates . $cr . 'General: ' . $general . $cr . 'seo: ' . $seo;

mail ($to, $subj, $body);

session_start();
if(($_SESSION['security_code'] == $_POST['security_code']) && (!empty($_SESSION['security_code'])) ) {
// Insert you code for processing the form here, e.g emailing the submission, entering it into a database.
unset($_SESSION['security_code']);
} else {
// Error, please re enter security code
}
?>

<script type="text/javascript">
gradualFader.init() //activate gradual fader
</script>