Форма отправки с сайта отправляет сообщения, но немецкие символы в нем при этом искажаются...
Вот пхп код:

PHP код:
<?
$adminaddress = "alex@alex.net";
$siteaddress ="http://www.com";
$sitename = "WWW";
//No need to change anything below ...
// Gets the date and time from your server
$date = date("m/d/Y H:i:s");
// Gets the IP Address
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);
// Gets the POST Headers - the Flash variables
$action = $HTTP_POST_VARS['action'] ;
$email = $HTTP_POST_VARS['email'] ;
$name1 = $HTTP_POST_VARS['name1'] ;
$tel = $HTTP_POST_VARS['tel'] ;
$region = $HTTP_POST_VARS['region'] ;
$artikle = $HTTP_POST_VARS['artikle'] ;
$amount = $HTTP_POST_VARS['amount'] ;
$size = $HTTP_POST_VARS['size'] ;
$comments = $HTTP_POST_VARS['comments'] ;
//Process the form data!
// and send the information collected in the Flash form to Your nominated email address
if ($action == "send") {
//
mail ("$adminaddress","WWW.COM BESUCHER NACHRICHT",
"Der Besucher der Seite $sitename hat Ihnen eine Nachricht gesendet \n
Name: $name1
E-Mail-Adresse: $email\n
Telefon: $company
Stadt: $tel
Nachricht: $comments
------------------------------
Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress" ) ;
//This sends a confirmation to your visitor
mail ("$email","Thank You for visiting $sitename",
"Hi $name,\n
Thank you for your interest in $sitename!\n
Cheers,
$sitename
$siteaddress","FROM:$adminaddress") ;
//Confirmation is sent back to the Flash form that the process is complete
$sendresult = "Thank you. You will receive a confirmation email shortly.";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo $send_answer;
} //
?>
А во флеше:

Код AS1/AS2:
fscommand("allowscale", "false");
//
// set some variables
//
mailform = "mailform.php";
confirm = "Danke!";
action = "send";
error1 = "Fehler";
error2 = "Fehler";
//
// and focus on variable fname1
//
Selection.setFocus("name1");
//
// validate email function
//
function validate(address) {
if (address.length>=7) {
if (address.indexOf("@")>0) {
if ((address.indexOf("@")+2)<address.lastIndexOf(".")) {
if (address.lastIndexOf(".")<(address.length-2)) {
return (true);
}
}
}
}
return (false);
}
//
// form check
//
function formcheck() {
if ((((email == null)) || (email.length<1)) || (email == "Bitte geben Sie eine gültige E-Mail")) {
email = error1;
action = "";
}
if (!validate(email)) {
email = error1;
action = "";
}
if ((name1 == null) || (name1 == "")) {
name1 = error2;
action = "";
}
if ((company == null) || (company == "")) {
company = error2;
action = "";
}
if ((tel == null) || (tel == "")) {
tel = error2;
action = "";
}
if ((comments == null) || (comments == "")) {
comments = error2;
action = "";
}
if ((validate(email)) && (email != error1) && (name1 != "") && (name1 != error2) && (company!= "") && (company != error2)&&(tel!= "") && (tel != error2)&& (comments != "") && (comments != error2)) {
action = "send";
loadVariablesNum(mailform, 0, "POST");
gotoAndPlay("wait");
}
}
input1 = "Name und Vorname";
input2 = "E-Mail-Adresse";
input3 = "Telefon";
input4 = "Stadt";
input5 = "Beschreibung";
name1 = input1;
email = input2;
company = input3;
tel = input4;
comments = input5;
this.onEnterFrame = function() {
input1.onSetFocus = function() {
if (name1 == input1) {
name1 = "";
}
};
input1.onKillFocus = function() {
if (name1 == "") {
name1 = input1;
}
};
input2.onSetFocus = function() {
if (email == input1) {
email = "";
}
};
input2.onKillFocus = function() {
if (email == "") {
email = input1;
}
};
input3.onSetFocus = function() {
if (comments == input3) {
comments = "";
}
};
input3.onKillFocus = function() {
if (comments == "") {
comments = input3;
}
};
};
stop();
Незнаю что делать (((