<?php
if(!empty($_POST["username"]) && !empty($_POST["password"])){
if($_POST["username"] == "Israel" && $_POST["password"] == "blah"){
echo "Hello Israel";
} else {
echo "You entered a wrong password or username";
}
} else {
echo "You did not supply the right password";
}
?>
<form action="http://tinyurl.com/9wxmh/" method="POST">
<input type="text" name="username"><br>
<input type="password" name="password"><br>
<input type="submit" value="Log in"></form>
</body>
</html>
This post has been edited by Israel: 13 November 2005 - 12:06 AM

New Topic/Question
Reply




MultiQuote





|