hello guys...
i've started to work in a company ...
and i'm learning the php now ... so i have been asked for a contact form..
the contact form is ready ... i just need to set a script to send the details to me
the problem that i have ... is that the contact form is in arabic .. and i don't know how should i do this ! like setting the value of something in arabic...
<?php
/* Email Variables */
$emailSubject ='feedback';
$webMaster ='new.lead.websites@gmail.com';
/* Data Variables */
$Name = $_POST['الإسم'];
$Email = $_POST['البريد الإلكتروني'];
$PhoneNumber = $_POST['الهاتف'];
$Message = $_POST['محتوى الرسالة'];
$email_body =
<<<EOD
الأسم الكامل: $Name
البريد الإلكتروني: $Email
الهاتف: $PhoneNumber
محتوى الرسالة: $Message
EOD;
$headers = "From: $Email\r\n";
$headers .= "Content-type:text/html\r\n";
$success = mail("new.lead.sites@gmail.com", $emailSubject, $email_body, $Email);
/* Results rendered as HTML */
$theResults = <<<EOD
<html>
<head>
<title>Sent Message</title>
<meta http-equiv="refresh" content="3;URL=http://success-fx.com">
<style type="text/css">
<!--
body {
background-color: #B2B2B2;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #212121;
text-decoration: none;
padding-top: 200px;
margin-left: 150px;
width: 800px;
}
-->
</style>
</head>
<div align="center">Thank you! Your message has been successfully submitted and will be replied to within 24 hours! You will be redirected back to the contact page shortly!</div>
</body>
</html>
EOD;
echo "$theResults";
?>
i really need your help guys..