ae, o og aa?
Har et message board. Men når jeg man skriver æ,ø og å ind på messageboardet og opdatere står æ,ø og å sådan her: ���������... Er der nogle der ved hvad jeg skal sætte ind før det virker.Håber i kan hjælpe mig.
koden ser sådan ud:
<?
if (!isset($name) || !isset($email) || !isset($message) || empty($name) || empty($email) || empty($message)) {
print "&result=Fail";
print "&errorMsg=" . urlencode("Input required for all fields.");
exit;
}
$email = strtolower($email);
addentry($name, $email, $message);
function addentry($name, $email, $message) {
$posted = strftime("%D %I:%M %p");
$message = stripslashes($message);
$file = fopen('entry.txt', 'a+');
if (!$file) {
print "&result=Fail";
print "&errorMsg=" . urlencode("Could not open entry.txt file. Change CHMOD levels to 766.");
exit;
}
fputs($file, "<font color=\"#000000\">Name:</font> $name\n<font color=\"#000000\">Email:</font> <font color=\"#CCCCCC\"><u><A href=\"mailto:$email\">$email</A></u></font><br>\n<font color=\"#000000\">Posted:</font> $posted\n<font color=\"#000000\">Message:</font> $message\n\n");
fclose($file);
// Send admin an email when new entry occurs
// mailAdmin($name, $email);
}
function mailAdmin($name, $email) {
$mailTo = "Your Name <blabla@hotmail.com>";
$mailFrom = "From: Guestbook <blabla@hotmail.com>";
$mailSubject = "New Guestbook Entry";
$mailBody = "$name ($email) has just posted in your guestbook\n\nView it at http://www.blabla.com";
mail($mailTo, $mailSubject, $mailBody, $mailFrom);
}
print "&result=okay";
exit;
?>
Vh.
Nico