1000){$contactinput=substr($contactinput,0,1000);} } else { $contactinput = ""; } $regex = '/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,6})$/'; if (empty($contactemail) || !preg_match($regex, $contactemail)) { $errf = 2; } if (strlen(ereg_replace("[^[:digit:]]","",$contacttel)) < 9) { $errf = 3; } if ($errf == 0) { $sendto = "bella@bellacostumes.com"; $senddate = date("d/m/Y H:i"); $sendsubject = "Online contact bellacostumes.com"; $sendmessage = "$contactname \n$contactaddress \n$client_country \nTel: $contacttel \nE-mail: $contactemail \n\n$contactinput"; $sendmessage = stripslashes($sendmessage); $IPinfo = $_SERVER['REMOTE_ADDR']; $IPstringinfo = gethostbyaddr($IPinfo); $IP_string = "$IPinfo $IPstringinfo"; $IP_string = trim($IP_string); $sendmailmessage = $sendmessage."\n\n\n$senddate\n$IP_string"; //ECHO nl2br($sendmailmessage); if ( @mail("$sendto", "$sendsubject", $sendmailmessage, "From: $contactemail") ) { $errf = 0; } else { $errf = 1; } } if ($errf == 2) { $confirmation = '
Email address
'.stripslashes($contactemail).'

Please make sure your mail address is correct
'; } elseif ($errf == 3) { $confirmation = '
Phone number
'.stripslashes($contacttel).'

Please make sure your phone number is correct
'; } elseif ($errf != 0) { $confirmation = '
An error occurred while processing the form

Please contact Bella at bella@bellacostumes.com
'; } else { //$confirmation = '
Thank you for contacting Bella
'; $confirmation = '
'.$contactemail.'

Thank you for contacting Bella
'; } } $content_gent = ""; $content_istanbul = ""; $query = "select * from bella_content where content_name = 'contact'"; $result = mysql_query($query) or die(mysql_error()); while ($row = mysql_fetch_array($result)) { $content_gent = $row["content_first"]; $content_istanbul = $row["content_second"]; } include("body_begin.php"); ?>
>
> 
 
Bella Gent
→ Roadmap
→ Contact form
Please phone before travelling to Bella-Gent as some
week-ends we have shows or bazaars in different countries.
Bella Istanbul
→ Roadmap