Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST["bus"]))
- {
- $validUser=$_POST["username"]=="admin" && $_POST["password"]=="password";
- }
- ?>
- <html>
- <head>
- <title>My Web App</title>
- </head>
- <body>
- <form method="post" action="hello.php">
- <center>
- <h1>Welcome To My Php App</h1><br>
- Username : <input type="textbox" name="username"><br>
- Password : <input type="password" name="password"><br>
- <input type="button" value="Submit" name="submit">
- <input type="button" value="cancel" name="cancel">
- </center>
- </form>
- </body>
- </html>
Add Comment
Please, Sign In to add comment