255 ) { $ok = false; $errs[] = "name"; } $_POST["email"] = trim($_POST["email"]); if ( strlen($_POST["email"])<6 || strlen(addslashes($_POST["email"]))>255 ) { $ok = false; $errs[] = "email"; } else { $str = $_POST["email"]; if ( strrpos($_POST["email"], ".")===FALSE ) { $ok = false; } else { $CCODE = substr( $_POST["email"], strrpos($_POST["email"], ".")+1 ); $str = substr($str, 0, strrpos($str, ".")); if ( strpos($str, "@")===FALSE ) { $ok = false; } else { $TLD = substr( $str, strpos($str, "@")+1); $str = substr( $str, 0, strpos($str, "@")); $user = $str; } } $str = $user . "@" . $TLD . "." . $CCODE; if ( eregi("([^A-Z])", $CCODE) || strlen($CCODE)<2 || strlen($CCODE)>4 || eregi("([^A-Z0-9\._-])", $TLD) || strlen($TLD)<1 || eregi("(([^A-Z0-9\._-]))", $user) || strlen($user)<1 || strcmp($_POST["email"], $str)!=0 ) { $ok = false; $errs[] = "email"; } } // end else strlen(post[email])<6 $_POST["website"] = trim(html_entity_decode($_POST["website"])); if ( strlen($_POST["website"])>500 ) { $ok = false; $errs[] = "website"; } $_POST["message"] = trim(html_entity_decode($_POST["message"])); if ( strlen($_POST["message"])>2048 ) { $ok = false; $errs[] = "message"; } if ( $ok ) { $rcpt = "contact@templatecube.com"; $subj = ""; $subj = preg_split("/[ \t\r\n\f\s]+/i", $_POST["message"], 4); if ( sizeof($subj)==4 ) { array_pop($subj); } $subj = join(" ", $subj); if ( strlen($subj)>25 ) $subj = substr($subj, 0, 25) . "..."; $body = "A new user has filled the contact form. The details are as follows: Name: " . $_POST["name"] . " Email: " . $_POST["email"] . " Website: " . $_POST["website"] . " Message: " . $_POST["message"] . " ----------------- End message [Automated email]"; /* additional header pieces for errors, From cc's, bcc's, etc */ $headers = "From: contact@templatecube.com \n"; $headers.= "X-Sender: \n"; $headers.= "X-Mailer: PHP\n"; // mailer $headers.= "X-Priority: 1\n"; // Urgent message! @mail($rcpt, $subj, $body) or die("

Internal Server Error

Please try again later."); header("Location: " . basename($_SERVER["PHP_SELF"]) . "?ty=1"); } } // endif count($_POST) ?> TemplateCube - Premium Website Templates, Flash templates, Logos, Corporate Identity
  TemplateCube - Premium Website Templates    

 

 

Thank you for your feedback. Your message has been received and our staff will review it as soon as possible.

Support, billing and technical problems
To get in touch with any of these departments please use our
Trouble Ticket System
and we'll reply as soon as possible.

 

Contact form
Please use the following  form only for  queries that are not related to  support, billing or technical department.

Errors occured.
The following fields have been left blank or are invalid: .

 

your name

 

>

 

your email

 

 

your website

 

>

 

message

 

 

 

Copyright 2004 TemplateCube.com. All rights reserved

Privacy Policy

 

 

 

 

 

 Full site

 Dynamic flash

new

 Flash animated

 Flash intro header

 Flash intros

 3D style

 Fireworks

 Last added

 Low budget

 3 colors

 Full package

 Agriculture

 Animals & Pets

 Architecture

 Art & Photography

 ArtWorks

 Beauty

 Books

 Business

 Cafe and Restaurant

 Car

 Clean style

 Communications

 Computers

 CSS

 Dating

 Education

 Electronics

 Entertainment

 Exterior design

 Family

 Fashion

 Flash Site

 Flowers

 Food & Drink

 Forums

 Games

 Gifts

 Hosting

 Hotels

 Industrial

 Interior & Furniture

 Internet

 Jewelry

 Law

 Media

 Medical

 Military

 Music

 Neutral

 Night Club

 Online store/shop

 Personal pages

 PHP-Nuke Themes

 Politics

 Portal

 Real Estate

 Religious

 Science

 Security

 Society & Culture

 Software

 Sport

 Transportation

 Travel

 Web design

 Wedding

 Zero Downloads

 

 

 

 

 

 

 

 

 

Free Website Templates

Best Template Sites