I've made a form within flash. the datas from this form are sended to a php
page on the server.
The button "send" into the flash form creates a LoadVars object and use the
send method:
on(release){
myData = new LoadVars();
myData.nom=nom;
myData.message=message;
myData.send("script.php", "post");
}
Here's the php page that creates automatically an email with the datas from
the form:
<html>
<body>
<?
$message = "nom:$nom\nmessage==$message";
$options = <<<FDT
X-Mailer: PHP4
FDT;
mail(adressThatRe...@server.com, "message from
blablabla", $message, $options);
print "thanks for your message, ...";
?>
</body>
</html>
__________________________________________
Here's my question:
The accented characters are wrong into the mail. By example, the accented e
looks like "Z^" ore smthing like that.
Is there a command to use into flash or php to have the correct encoding of
these characters?
__________________________________________
Thanks
Dorian
Hi Dorian,
Try to escape the values in Flash before you send them to PHP, e.g.:
on(release){
myData = new LoadVars();
myData.nom=escape(nom);
myData.message=escape(message);
myData.send("script.php", "post");
}
Hope this helps;
JOn