cressisub
01-14-2011, 01:40 PM
hi guys,
i don't know if this is the right place to post my problem but since it is a flash contact form i'll give it a try here and hope someone put me out of misery
i have a flash contact form and it works when it is filled in english. but for greek characters i get decoded symbols (ΑΛΑΞΔΛΚΗΛΚΦΔÎ). if someone knows how to make this php support Greek it would be great. please have a look:
<?php
$contact_name = $_POST['name'];
$contact_email = $_POST['email'];
$contact_subject = $_POST['subject'];
$contact_message = $_POST['message'];
if( $contact_name == true )
{
$sender = $contact_email;
$receiver = "[email protected]";
$client_ip = $_SERVER['REMOTE_ADDR'];
$email_body = "Name: $contact_name \nEmail: $sender \nSubject: $contact_subject \nMessage: $contact_message \nIP: $client_ip\;
$extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion();
if( mail( $receiver, "Flash Contact Form - $subject", $email_body, $extra ) )
{
echo "success=yes";
}
else
{
echo "success=no";
}
}
?>
Please if someone could help me get this work?? so frustrated
i don't know if this is the right place to post my problem but since it is a flash contact form i'll give it a try here and hope someone put me out of misery
i have a flash contact form and it works when it is filled in english. but for greek characters i get decoded symbols (ΑΛΑΞΔΛΚΗΛΚΦΔÎ). if someone knows how to make this php support Greek it would be great. please have a look:
<?php
$contact_name = $_POST['name'];
$contact_email = $_POST['email'];
$contact_subject = $_POST['subject'];
$contact_message = $_POST['message'];
if( $contact_name == true )
{
$sender = $contact_email;
$receiver = "[email protected]";
$client_ip = $_SERVER['REMOTE_ADDR'];
$email_body = "Name: $contact_name \nEmail: $sender \nSubject: $contact_subject \nMessage: $contact_message \nIP: $client_ip\;
$extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion();
if( mail( $receiver, "Flash Contact Form - $subject", $email_body, $extra ) )
{
echo "success=yes";
}
else
{
echo "success=no";
}
}
?>
Please if someone could help me get this work?? so frustrated