wildteen88 Posted January 31, 2010 Share Posted January 31, 2010 Your form fields are not located between the <form ...> </form> tags so they don't do anything. Ref: http://w3schools.com/html/html_forms.asp http://w3schools.com/php/php_forms.asp 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> No your form tags are still in the wrong location. It should be <!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> <form action="login.php" method="post"> <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> <input type="submit" name="button" id="button" value="Login" /> </form> <hr /> <p align="center"> </p> </div> </body> </html> Link to comment https://forums.phpfreaks.com/topic/190365-wrong-password/page/2/#findComment-1004573 Share on other sites More sharing options...
PFMaBiSmAd Posted January 31, 2010 Share Posted January 31, 2010 LOL, I told you - Your form fields are not located between the <form ...> </form> tags ... That means the form tags you already have and which are defining the form on the page. And if you set the error_reporting/display_errors settings as suggested and then test your code, you will find things like what mattal999 is pointing out because there will be php generated error messages for things like $_POST variables that don't exist because the name of them does not match the name you are using in your form field. Link to comment https://forums.phpfreaks.com/topic/190365-wrong-password/page/2/#findComment-1004582 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.