Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
- <title>opdracht 5</title>
- <meta name="description" content="leren van php" />
- <meta name="keywords" content="webdesign, php, dbz ,programmeren, komma, spatie, html, xhtml, css, web standards, valid" />
- <meta name="author" content="aymen tijari" />
- <meta name="Revisit-After" content="1 days" />
- <meta http-equiv="Pragma" content="no-cache" />
- <meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
- <meta http-equiv="Expires" content="-1" />
- <link rel="stylesheet" type="text/css" href="style.css">
- </head>
- <body>
- <?php
- $user = $_POST['user'];
- $pass = $_POST['pass'];
- $ctime = Date('H');
- if (($user == "gebruikersnaam") && ($pass == "dbz123")) {
- if (($ctime > 0) && ($ctime < 12)) {
- echo "<p>Goede morgen, ".$user."</p>";
- } elseif (($ctime >12) && ($ctime < 18)) {
- echo "<p>Goedemiddag, ".$user."</p>";
- } elseif (($ctime > 18) && ($ctime < 24)) {
- echo "<p>Goedeavond,".$user."</p>";
- } else {
- echo "<p>Fout</p>";
- }
- } else {
- echo "<p>Fout wachtwoord</p>";
- echo"<p><a href=\"les6.php\"</a></p>";
- }
- echo"<p><a href=\"index.php\">home</a></p>";
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement