Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function canILogin( $username, $password) {
- if ($username == 'joris' && $password =="netflix") {
- return true;
- }
- else {
- return false;
- }
- }
- if (canILogin('joris', 'ne')) {
- echo "yep";
- }
- else {
- echo "no";
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf8">
- </head>
- <body>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement