Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head></head>
- <body>
- <form action="tutorial_02.php method=POST">
- Username: <input type=text name=user><br>
- Password: <input type=text name=password><br>
- <input type=submit value="Go!"><p>
- </form>
- <?php
- $user=$_POST['user'];
- $pass=$_POST['pass'];
- if(($user=="myname")&&($pass=="mypass")) echo "access granted";
- else echo "access denied";
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement