How to contact us:
Call us on:
UK: (+44) 0208 - 133 - 2154
SPAIN: (+34) 68 - 748 - 6909
FAX: (+34) 96 - 112 - 5681
SKYPE: christopher_proctor
Or if you prefer, please complete below:
"" and !ereg("^[^@ ]+@[^@ ]+\.[^@ \.]+$", "$email"))
{
$error = $error +1;
$message = $message.$no_email2;
}
if ($first =="")
{
$error = $error +1;
$message = $message.$no_first;
}
if ($last =="")
{
$error = $error +1;
$message = $message.$no_last;
}
if ($question =="")
{
$error = $error +1;
$message = $message.$no_question;
}
// send form if all ok
if($error ==0 and $Submit=="Submit")
{
// send all
//screen meesage, emails and database.
echo "
\n Thank you $first for contacting Property for sale Valencia we will reply shortly.\n
\n";
// send email
$mail_subject = "Contact us form from propertyforsalevalencia.co.uk website";
$mail_message = " Name $first $last
email:
$email
Question :
$question
";
$mail_from = "From: $email";
$Email = "enquiry@propertyforsalevalencia.co.uk";
if(mail($Email, $mail_subject, $mail_message, $mail_from));
//multi part mail to client
$mail_subject = "property for sale valencia";
$mail_boundry = md5(uniqid(""));
$mail_headers .= "From: enquiry@propertyforsalevalencia.co.uk\r\n";
$mail_headers .= "MIME-Version: 1.0\r\n";
$mail_headers .= "Content-Type: multipart/alternative;\r\n";
$mail_headers .= " boundary=\"$mail_boundry\"\r\n";
$mail_message = "This is a multi-part message in MIME format.
--$mail_boundry
Content-Type: text/plain; charset=\"US-ASCII\"
Dear $first,
Thank you very much for your question/comments, we will be back in touch with you soon.
Yours faithfully,
Christopher Proctor - Client Director
UK: (+44) 0208 - 133 - 2154
SPAIN: (+34) 68 - 748 - 6909
FAX: (+34) 96 - 112 - 5681
SKYPE: christopher_proctor
propertyforsalevalencia.co.uk.
In the UK Telephone: 0115 714 2001 - In Spain: 96 579 2979 - Skype: star.villas
--$mail_boundry
Content-Type: text/html; charset=\"US-ASCII\"
Dear $first,
Thank you very much for your question/comments, we will be back in touch with you soon.
Yours faithfully,
Christopher Proctor - Client Director
Manchester: 0161 832 8387 UK MOBILE: 0776 088 6696 email: chris_proctor[at sign]me.com Skype: christopher_proctor
propertyforsalevalencia.co.uk.
|
--$mail_boundry--";
$mail_from = "From: enquiry@propertyforsalevalencia.co.uk";
$Email = $email;
if(mail($Email, $mail_subject, $mail_message, $mail_headers));
// link to database
//$db_password ="passwind";
//$db_user ="rentalvilla";
//$db_database="rentalvilla";
//$db_host="213.171.218.243";
include_once("db/variables.php");
$link_id = mysql_connect("$db_host","$db_user","$db_password");
if (mysql_select_db("$db_database", $link_id))
// email first_name surname phone language newsletter prop_alert town max_price min_price prop_type added_date
$insertclient = "insert into clients (email,first_name,surname,phone,language,newsletter,prop_alert,added_date ) values ('$email','$first', '$last', '$phone','1', '1','0', curdate())";
if ( !mysql_query($insertclient))
{
$err=mysql_error();
problem("contact us insert
$insertclient
$err");
}
mysql_close($link_id);
}
// start of main form
if($error >0 and $Submit=="Submit" or $Submit=="")
{
?>