Hier ist meine erste Page, dich ich selber gescriptet habe
Sie läuft schon fast, wie ich sie haben will, folgende Punkte will ich ändern:
1. Jeder User soll news "posten" können. Daran muss ich mich noch setzen.
2. My Question: Ich will natürlich ü, ä, ö richtig ausgeben. Nun, wenn man auf Webmaster klickt, kommen die Umlaute auch richtig, aber rechts wird das ü nie angezeigt. Ich habe sowohl
Code:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
wie auch
Code:
<?php
header('Content-type: text/html; charset=iso-8859-1');
?>
eingefügt. Was mach ich nun falsch?
Code für die Hauptseite:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="de" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php
header('Content-type: text/html; charset=iso-8859-1');
?>
<title>Home @ Klasse 3H</title>
<link rel="alternate stylesheet" media="screen,projection"
title="Standardstylesheet" href="default.css"
type="text/css" />
<link rel="alternate stylesheet" media="screen,projection"
title="Alternative" href="alternative.css"
type="text/css" />
<link rel="stylesheet" media="screen,projection"
title="Meines" href="meine.css"
type="text/css" />
</head>
<body>
<?php
session_start();
?>
<div id="box1">
<img src="images/header.jpg" width="830" height="100" alt="" />
</div>
<div id="box2">
<h3 style="white-space: pre"> <a href="index.php">Home</a> <a href="galerie.php">Galerie</a> <a href="http://25984.rapidforum.com/" >Forum</a> <a href="formular_p.php">Webmaster</a> </h3>
</div>
<div id="box3"></div>
<div id="box4"><h1> News: </h1></div>
<div id="box5">
<?php
if(!isset($_SESSION['username']))
{
echo "<form action=\"login.php\" method=\"post\">
<p>
<label for=\"user\"> Benützername: </label>
<br />
<input type=\"text\" size=\"15\" maxlength=\"15\" name=\"user\" id=\"user\" tabindex=\"1\" />
<br />
<label for=\"Passwort\"> Passwort: </label>
<br />
<input type=\"password\" size=\"15\" maxlength=\"15\" name=\"Passwort\" id=\"Passwort\" tabindex=\"2\" />
<br />
<br />
<input type=\"submit\" value=\"Login\" tabindex=\"3\" />
<br />
<a href=\"registrieren.php\" tabindex=\"4\">Registrier dich!</a>
</p>
</form>";
}
else
{
echo "Du bist eingelogt. <br /> <a href=\"auslogen.php\" > Logout</a>";
}
?>
</div>
</body>
</html>