Jeg kan ikke skrive med alle bogstaver i min gæstebog
Jeg har en Flash gæstebog med noget PHP scripting - hvilket jeg intet aner om.Hvad skal jeg skrive for at man kan skrive med æøå ??
Hvis jeg f.eks skriver : Hej æøå
så viser den kun: Hej
<?
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");
// $file = utf8_encode($file);
$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\">Navn:</font><font color=\"#000000\"> $name\n</font><font color=\"#000000\">Email:</font> <font color=\"#000000\"><u> <A href=\"mailto:$email\"><font color=\"#000000\">$email</font></A></u></font><br>\n<font color=\"#000000\">Besked:</font><font color=\"#000000\"> $message\n\n</font>");
fclose($file);
// Send admin an email when new entry occurs
// mailAdmin($name, $email);
}
/*
function mailAdmin($name, $email) {
$mailTo = "Maria Kappers <maria@kappers.dk>";
$mailFrom = "From: Guestbook <noreply@email.com>";
$mailSubject = "New Guestbook Entry";
$mailBody = "$name ($email) has just posted in your guestbook\n\nView it at http://www.kappers.dk";
mail($mailTo, $mailSubject, $mailBody, $mailFrom);
}
*/
print "&result=okay";
exit;
?>