Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action="<?=$PHP_SELF?>" name="myForm" method="post">
- <input type="text" name="user" maxlength="100" />
- <input name="pass" maxlength="100" type="password" />
- <input type="submit" value="Try it" name="submit" />
- </form>
- <?php
- $user = $_POST['user'];
- $pass = $_POST['pass'];
- if(isset($user) || isset($pass)) {
- if(empty($user)) {
- die("Fyll i anvandarnamn");
- }
- if(empty($pass)) {
- die("fyll i losen tack!");
- }
- if($user == "xarax" && $pass == "xarax") {
- header('Location: localhost/~theomarkovic/index.php');
- exit;
- }
- else {
- echo "fel anvandarnamn/losenord";
- }
- }
- ?>
Add Comment
Please, Sign In to add comment