Jump to content

Wrong Password


eazyefolife

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.