name
" ; } if ( strlen( $_POST['enquiry'] ) < 1 ) { $errors .= "You did not supply a message
" ; } if ( strlen( $_POST['email'] ) < 1 ) { $errors .= "You did not supply an email address
" ; //now check email is in correct format... } else if ( !eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$", $_POST['email'] ) ) { $errors .= "You supplied an incorrectly formatted email address
" ; } else if ( $_POST['email'] == 'info@jamuk.com' ) { $errors .= "The email address is invalid!" ; } if ( $_SESSION['security_code'] !== $_POST['captcha'] || empty( $_SESSION['security_code'] ) || is_null( $_SESSION['security_code'] ) ) { $errors .= "Please re-enter the text displayed in the User Validation image." ; } else { unset( $_SESSION['security_code'] ); } //if there are no errors yet if ( strlen( $errors ) < 1 ) { //check whether the same ip has submitted an email through this form more than //'$max_submissions' times, in '$submission_time_period' seconds... $max_submissions = 1 ; $submission_time_period = 60 ; $plural = ' is ' ; if ( $max_submissions > 1 ) { $plural = 's are ' ; } require_once ( 'connect.php' ) ; $now_time = gmmktime( ) ; $past_limit_db = gmdate( 'YmdHis' , $now_time - $submission_time_period ) ; $now_limit_db = gmdate( 'YmdHis' , $now_time ) ; $sql = 'SELECT COUNT( ID ) AS Requests FROM cf_iplist WHERE IP="' . $_SERVER['REMOTE_ADDR'] . '" AND Sent BETWEEN "' . $past_limit_db . '" AND "' . $now_limit_db . '"' ; $res = mysql_query( $sql , $db ) ; $rows = mysql_num_rows( $res ) ; if ( ( $res ) && ( $rows ) ) { $row = mysql_fetch_object( $res ) ; if ( $row->Requests >= $max_submissions ) { $errors .= 'Sorry, due to the high volume of spam mail we receive, only ' . $max_submissions . ' submission' . $plural . 'allowed per ' . $submission_time_period . ' second interval.'; } else { //if no error, drop the ip and sent time into the db... $sql = 'INSERT INTO cf_iplist ( IP , Sent ) VALUES ( "' . $_SERVER['REMOTE_ADDR'] . '" , "' . $now_limit_db . '" ) ' ; $res = mysql_query( $sql , $db ) ; } } } //if the ip is valid if ( strlen( $errors ) < 1 ) { $to = 'info@jamuk.com' ; $subject = 'Web Enquiry Form [' . $_POST['nature'] . ']' ; $content = "Name: " . $_POST['name'] . "\n" ; $content .= "Job Title: " . $_POST['jobtitle'] . "\n" ; $content .= "Company: " . $_POST['company'] . "\n" ; $content .= "Address: " . $_POST['address'] . "\n" ; $content .= "Postcode: " . $_POST['postcode'] . "\n" ; $content .= "Telephone: " . $_POST['telephone'] . "\n" ; $content .= "Fax: " . $_POST['fax'] . "\n" ; $content .= "Email: " . $_POST['email'] . "\n" ; $content .= "Enquiry: " . $_POST['enquiry'] . "\n" ; $content .= "User Agent: " . $HTTP_USER_AGENT . "\n" ; $headers = 'From: ' . $_POST['email'] . "\r\n" ; $headers .= 'X-From: ' . $_POST['email'] . "\r\n" ; $headers .= 'Reply-To: ' . $_POST['email'] . "\r\n" ; $headers .= 'X-Mailer: Web Enquiry Form' . "\r\n" ; mail( $to , $subject , $content , $headers , '-f' . $_POST['email'] ) ; $to = $_POST['name'] . '<' . $_POST['email'] . '>' ; $subject = 'Thank you for your interest' ; $thankyou = "Dear " . $_POST['name'] . ",\n\n" ; $thankyou .= "Thank you for your interest in Jam Design UK Ltd.\n" ; $thankyou .= "Someone from our sales department will be in contact with you shortly regarding your enquiry.\n\n" ; $thankyou .= "Yours Sincerely,\n" ; $thankyou .= "The Sales Department\n\n" ; $headers = 'From: Jam Design UK Ltd' . "\r\n" ; $headers .= 'X-From: info@jamuk.com' . "\r\n" ; $headers .= 'Reply-To: Jam Design UK Ltd ' . "\r\n" ; $headers .= 'X-Mailer: Web Enquiry Form' . "\r\n" ; mail( $to , $subject , $thankyou , $headers , '-finfo@jamuk.com' ) ; $success = '

Thank you for your request.

To continue navigating the site please use the links above.

' ; } } $pageTitle = 'Contact Information.' ; $extraHead = '' ; require_once ( 'page_top.php' ) ; ?>

:: Contact Information ::

1 ) { echo '
' . $errors . '
' ; } else if ( strlen( $success ) > 1 ) { echo $success ; } ?>

Contact Details

Address: 5th Floor
33 Furnival Street
London
EC4A 1JQ

Telephone: +44 (0)20 7730 8083

Facsimile: +44 (0)20 7730 6083

E-mail: info@jamuk.com
Location Map:
View Larger Map

Contact Form

Name:
Job Title:
Company Name:
E-mail:
Message
Address:
Post Code:
Telephone:
Facsimile:
Nature of enquiry: type="radio" name="nature" id="n1" value="Website Design" tabindex="9">
type="radio" name="nature" id="n2" value="Domain Name Registration">
type="radio" name="nature" id="n3" value="Website Promotion">
type="radio" name="nature" id="n4" value="Website Hosting">
type="radio" name="nature" id="n5" value="Other">
User Validation: captcha

Enter text from above in box below.