1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | function naam_ok($n) { if ($n == "docent") { return true; } else { return false; } } function wachtwoord_ok($w) { return ($w == "pass"); } if (!empty($_POST)) { echo ("<h3>Uw poging om in te loggen is "); if (!naam_ok($_POST["naam"]) || !wachtwoord_ok($_POST["wachtwoord"])) { echo ("NIET "); } echo ("geslaagd</h3>"); } else { echo ("<form name=\"form1\" method=\"post\" action=\"" . $_SERVER["PHP_SELF"] . "\">"); <h3>Inlogformulier</h3> Naam: <input type="text" name="naam"><br> Wachtwoord: <input type="password" name="wachtwoord"><p> <input type="submit" name="Submit" value="Verzenden"> <input type="reset" name="Reset" id="Reset" value="Wissen"> </form> ?> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>Docenten</title> </head> <body> <table align="center" border="1" bordercolor="BLACK" height="120" width="894"> <tbody> <tr> <td colspan="3" valign="CENTER"><img style="width: 912px; height: 33px;" alt="" src="bannerbasisschool.JPG"><br> </td> </tr> <tr> <td align="left" height="500" valign="top" width="120"> <a class="type2" href="home.html">Home</a><br> <a class="type2" href="Kalender.html">Kalender</a><br> <a class="type2" href="Fotoalbum.html">Fotoalbum</a><br> <a class="type2" href="Mededelingen.html">Mededelingen</a><br> <a class="type2" href="Reglement.html">Reglement</a><br> <a class="type2" href="Contact.html">Contact</a><br> <a class="type2" href="Plattegrond.html">Plattegrond</a> <br> <a class="type2" href="Docenten.html">Docenten</a> </td> <td align="left" height="500" valign="top" width="654">Docenten dienen in te loggen om door te gaan naar de docentenruimte<br> </p> </td> </tr> </tbody> </table> </body> </html> ?> |
Forum Opties | |
---|---|
Forumhop: | |
Hop naar: |