Her er mine sider:
<? session_start(); ?>
<link rel="stylesheet" type="text/css" href="../style.css">
<center>
<?
$bruger = "noget";
$kodeord = "noget";
session_start();
if(($_POST[user] == $bruger) && ($_POST[pass] == $kodeord)||($_SESSION["check"] == "yes")||($_COOKIE["check"] == "ja")){
$dato = date("G:i - d-m-y");
$_SESSION['check'] = "yes";
setcookie("check", "ja", time()+3600);
?>
<form action="opretter.php" method="POST">
<input type="hidden" name="dato" value="<? $dato ?>">
Navn:<input type="textfield" name="navn">
<br>
Overskrift:<input type="textfield" name="overskrift">
<br>
Forord:<textarea type="textfield" name="forord" rows="10" cols="35"></textarea>
<br>
Nyhed:<textarea type="textfield" name="nyhed"></textarea>
<br>
Billede:<input type="textfield" name="billede">
<br>
<br>
<input type="submit" name="submit" value="Send!">
</form>
<br>
<br>
<br>
<br>
<a href="admin-ret.php">Eller ret en nyhed</a>
<?
}
else{
$_SESSION['check'] = "no";
?>
<form action="admin.php" method="POST">
Brugernavn:<input type="textfield" name="user">
<br>
Password:<input type="password" name="pass">
<br>
<br>
<input type="submit" value="Login" name="send">
</form>
<?
}
?>
<br>
<br>
<br>
<b><a href="index.php">Til forsiden igen</a></b>
</center>