Jump to content

eazyefolife

Members
  • Posts

    49
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

eazyefolife's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. So this is better? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Son of Mini-Missions - Home</title> <style type="text/css"> <!-- body { background-image: url(http://www.jservers.co.uk/imgs/bg.png); background-repeat: repeat; } #apDiv1 { position:absolute; left:541px; top:296px; width:266px; height:26px; z-index:1; font-size: 16px; font-family: Georgia, "Times New Roman", Times, serif; font-weight: bold; } .loginHolder tr td b { font-weight: bold; } --> </style></head> <body> <div align="center"> <p><a href="index.php"><img src="logo.jpg" width="648" height="144" /></a></p> <table class="loginHolder"> <tr> <td><b>Player Name</b></td> <td><b>Password:</b></td> </tr> <tr> <td height="24"><form action="login.php" method="post"><input name="username" type="text" value="My_SonofMM_PlayerName" /></td> <td><input name="password" type="password" id="loginPassword" value="MyPassword" /></form></td> </tr> </table> <form action="login.php" method="post"> <input type="submit" name="button" id="button" value="Login" /> </form> <hr /> <p align="center"> </p> </div> </body> </html>
  2. I have not seen your form code posted yet, so it is also likely that the form is invalid and is not even submitting any $_POST data. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Son of Mini-Missions - Home</title> <style type="text/css"> <!-- body { background-image: url(http://www.jservers.co.uk/imgs/bg.png); background-repeat: repeat; } #apDiv1 { position:absolute; left:541px; top:296px; width:266px; height:26px; z-index:1; font-size: 16px; font-family: Georgia, "Times New Roman", Times, serif; font-weight: bold; } .loginHolder tr td b { font-weight: bold; } --> </style></head> <body> <div align="center"> <p><a href="index.php"><img src="logo.jpg" width="648" height="144" /></a></p> <table class="loginHolder"> <tr> <td><b>Player Name</b></td> <td><b>Password:</b></td> </tr> <tr> <td height="24"><input name="username" type="text" value="My_SonofMM_PlayerName" /></td> <td><input name="password" type="password" id="loginPassword" value="MyPassword" /></td> </tr> </table> <form action="login.php" method="post"> <input type="submit" name="button" id="button" value="Login" /> </form> <hr /> <p align="center"> </p> </div> </body> </html>
  3. Can you help me with this?
  4. bump
  5. Comptons_Eazy_E Password: Test
  6. Even with wrong username and password I get: DEBUG IT Match Username ()... SUCCESS Match password... FAIL! Password is wrong what is it? $mypassword = '' $dbPassword = '123456'Wrong Username or Password. please go back. But with the right one, I get the same thing.
  7. Wrong password: Match Username ()... SUCCESS Match password... FAIL! Password is wrong what is it?$myPassword = '' $dbPassword = '123456'Wrong Username or Password. please go back. Right password: Match Username ()... SUCCESS Match password... FAIL! Password is wrong what is it?$myPassword = '' $dbPassword = '123456'Wrong Username or Password. please go back. :'(
  8. On top of the script in: <?php include("sql.php"); ?>
  9. With nothing
  10. Can you post the error your are getting? Wrong Username or Password. please go back.
  11. echo $myusername; echo $mypassword; ??
  12. Everytime I type in something, even if the password and name is RIGHT I get a error code: http://comptons.pastebin.com/m3715aac1
  13. Then what should I replace with it??
  14. Edit: Code changed if(!isset($_POST['username']) || !trim($_POST['username'])) die('Please enter a name.'); $fname = mysql_real_escape_string(trim($_POST["username"])); $ppassword = mysql_real_escape_string(trim( $_POST["password"])); $sql = mysql_query("SELECT * FROM players WHERE Name = '$fname' AND Password = '$ppassword' LIMIT 1"); if($_POST["username"] && $_POST["password"]) { if(mysql_num_rows($sql)>0) { echo("You are logged in!"); } else { echo "Account does not exist"; } return false; } else { echo("Incorrect Password"); } This is better? Now it keeps saying, please put in a name
  15. I dont see anything, that's why im asking.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.