Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form id="form" action="index.php" method="POST" name="lab14">
- Username:
- <input type="text" name="username"><br/>
- Password:
- <input type="password" name="password"><br/>
- <input type="submit" name="submit" value="Submit">
- </form>
- <?php
- session_start();
- // first part
- if (isset($_SESSION['name']))
- {
- echo '<a href="logout.php">Logout</a>';
- }
- // second part
- if(isset($_POST['name']))
- {
- $username = $_POST['username'];
- $password = $_POST['password'];
- if($username=='comp' && $password == 'php123')
- {
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement