Advertisement
Guest User

Untitled

a guest
May 29th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.42 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
  5.     <title>opdracht 5</title>
  6.     <meta name="description" content="leren van php" />
  7.     <meta name="keywords" content="webdesign, php, dbz ,programmeren, komma, spatie, html, xhtml, css, web standards, valid" />
  8.     <meta name="author" content="aymen tijari" />
  9.     <meta name="Revisit-After" content="1 days" />
  10.     <meta http-equiv="Pragma" content="no-cache" />
  11.  
  12.     <meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
  13.     <meta http-equiv="Expires" content="-1" />
  14.     <link rel="stylesheet" type="text/css" href="style.css">
  15. </head>
  16. <body>
  17.    
  18.         <?php
  19.         $user = $_POST['user'];
  20.         $pass = $_POST['pass'];
  21.         $ctime = Date('H');
  22.         if (($user == "gebruikersnaam") && ($pass == "dbz123")) {
  23.             if (($ctime > 0) && ($ctime < 12)) {
  24.                 echo "<p>Goede morgen, ".$user."</p>";
  25.             } elseif (($ctime >12) && ($ctime < 18)) {
  26.                 echo "<p>Goedemiddag, ".$user."</p>";
  27.             } elseif (($ctime > 18) && ($ctime < 24)) {
  28.                 echo "<p>Goedeavond,".$user."</p>";
  29.             } else {
  30.                 echo "<p>Fout</p>";
  31.             }
  32.         } else {
  33.             echo "<p>Fout wachtwoord</p>";
  34.             echo"<p><a href=\"les6.php\"</a></p>";
  35.         }
  36.        
  37.         echo"<p><a href=\"index.php\">home</a></p>";
  38.         ?>
  39. </body>
  40. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement