HTML beginner |
|
<?php
if(isset($_SESSION['user']))
{
echo "<img src="images/opsomming.jpg" alt="opsomming" width="9" height="9"> <a href="?pagina=gastenboek" class="link">Gastenboek</a><br>";
echo "<img src="images/opsomming.jpg" alt="opsomming" width="9" height="9"> <a href="?pagina=nieuws" class="link">Nieuws</a><br>";
echo "<img src="images/opsomming.jpg" alt="opsomming" width="9" height="9"> <a href="?pagina=portfolio" class="link">Portfolio</a><br>";
echo "<img src="images/opsomming.jpg" alt="opsomming" width="9" height="9"> <a href="?pagina=profiel" class="link">Profiel</a>";
}else{
echo "<form action="" method="post">";
echo "<div class="text">";
echo "<img src="images/opsomming.jpg" alt="opsomming" width="9" height="9"> Login:";
echo "<input name="login" type="text" class="formulier">";
echo "<img src="images/opsomming.jpg" alt="opsomming" width="9" height="9"> Paswoord:";
echo "<input name="paswoord" type="password" class="formulier">";
echo "<input name="submit" type="submit" class="button" value="Log in">";
echo "</div>";
echo "</form>";
}
?>
<?php if(isset($_SESSION['user'])) { echo "<img src="images /opsomming .jpg " alt="opsomming " width="9" height="9"> <a href="?pagina =gastenboek " class="link">Gastenboek</a><br>"; echo "<img src="images /opsomming .jpg " alt="opsomming " width="9" height="9"> <a href="?pagina =nieuws " class="link">Nieuws</a><br>"; echo "<img src="images /opsomming .jpg " alt="opsomming " width="9" height="9"> <a href="?pagina =portfolio " class="link">Portfolio</a><br>"; echo "<img src="images /opsomming .jpg " alt="opsomming " width="9" height="9"> <a href="?pagina =profiel " class="link">Profiel</a>"; }else{ echo "<form action="" method="post ">"; echo "<div class="text ">"; echo "<img src="images /opsomming .jpg " alt="opsomming " width="9" height="9"> Login:"; echo "<input name="login " type="text " class="formulier ">"; echo "<img src="images /opsomming .jpg " alt="opsomming " width="9" height="9"> Paswoord:"; echo "<input name="paswoord " type="password " class="formulier ">"; echo "<input name="submit " type="submit " class="button " value="Log in ">"; } ?>
Ik zou graag willen dat iemand die ingelogd is het adminmenu te zien krijgt in plaats van het login formulier. Maar IE zegt dat ik een , of een ; vergeten ben. Ik zou niet weten waar!
Oplossing: Heb nielsvdwal zijn manier gebruikt!
|