還有一個簡單的PHP代碼,我想修改它,因爲它不能顯示我的sylfaen字母。相反sylfaen有未知的符號,例如:áƒ~შáƒ在我的收件箱中。 請幫幫我。PHP郵件編碼
<?php
$emailTo = "[email protected]";
$name = $_POST["name"];
$emailFrom = $_POST["email"];
$message = $_POST["message"];
$subject = "From Website!";
if(!empty($_POST)) {
$body = "Name: " . $name . "\n\n";
$body .= "Email: " . $emailFrom . "\n\n";
$body .= "Message:\n" . $message;
$body = wordwrap($body, 70);
$header = "From: " . $emailFrom . "\nReply-To: " . $emailFrom. "\n\n" ;
if(mail($emailTo, $subject, $body, $header)) {
echo("result=Form sent successfully");
} else {
echo("result=There was a problem sending the form");
}
}
?>
哪個編碼是源文件?有沒有任何編碼標籤? –
在PHP文件中只有這樣的代碼,它裏面沒有任何HTML頭。我正在使用這種形式的AS3 Flash網站 – MishaAbesadze