long time reader first time poster :-)
Hi,
i have a form that get all the info from flash and send the vars to php form all works well but hebrew.... i get some "jibrish"
other experiments i made shows:
a. if $content = "some hebrew characters";
embed heb-text in php works fine
however if it comes in a var it fails
any help is highly appreciated.
i saw other post but no one provided a firm solution:
http://www.daniweb.com/forums/thread15139.html
http://www.daniweb.com/forums/thread22253.html
my php code:
<?php
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .="Content-type: text/plain; charset=Windows-1252 \r\n";
$sendto = 'someOne@somesite.co.il';
$subject = 'Email from WebSite';
$name = $_POST['fromname'];
$from = $_POST['fromemail'];
$subSubject = $_POST['fromsubject'];
$message = utf8_decode($HTTP_POST_VARS['frommessage']);
$message = stripslashes($message);
$content = "Name: " . $name . "\n";
$content .= "Email: " . $from . "\n\n";
$content .= "Subject: " . $subSubject . "\n";
$content .= $message;
if(mail($sendto,$subject,$content))
{
echo 'response=passed';
}
else
{
echo 'response=failed';
}
?>