Gorilla3D Primative Teachings
Php Screencast 06:
User Login
Code used in screencast
- <?php
-
-
- if ($username == 'bob' and $password == '123')
- {
- echo 'Login Successful<br/>';
- }
- else
- {
- echo '<span style="color: red">Login Failed</span>';
- }
- ?>
-
- <html>
- <head>
- <title>My login</title>
- </head>
- <body>
- <div></div>
-
- <form action="" method="post">
- username: <input name="username" type="text" />
- password: <input name="password" type="password" />
- <input type="submit" />
- </form>
- </body>
- </html>
-
