If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Senior Member paintingtheweb's Avatar
    Join Date
    Jul 2007
    Las Vegas
    Member #
    here is the form code (mkInput() is my function. the name and id are the 5th and 6th parameters)
    function mkLOGIN() {
        <table border="0" cellpadding="0" cellspacing="0" width="100%"  height="1" >
                <td valign="top" >
                    <table border="0" cellpadding="0" cellspacing="0" style="width:208px;"> 
                    <form method="POST" name="loginform" id="loginform" action="<?=stripurl('area')?>area=syslogin"  <?=(($_SESSION['browser']->Name=='MSIE') ? ' onsubmit="return chLOGIN(getEl(\'loginform\')); return false;" ' : '' )?>>
                        <input type="hidden" name="password" id="password" value="">
                        <td >
                            <?=mkInput('USERNAME','text',170,16,'username','username',0,'input_txtbox','ondblclick="this.value=\'USERNAME\';" onFocus="clearInuput(this,\'USERNAME\');" ')?>
                        <td >
                        <td valign="top" style="padding-top:0px;padding-left:85px;">
                            <input type="submit"  name="submint_btn" id="submint_btn" value="login" style="height:20px;" <?=(($_SESSION['browser']->Name!='MSIE') ? ' onClick="return chLOGIN(getEl(\'loginform\')); return false;" ' : '' )?>>
    and here is the function it's calling:
    function chLOGIN(frm) {
                checkLogin(frm, 1) ;
                if(!getEl('username').value)        return recheck('Please enter a username.',getEl('username'), 'uname');
                if(!valideml(getEl('username'))) return recheck('Please enter a valid username (Email Address Format).',getEl('username'), 'username');
                if(!getEl('pword').value)        return recheck('Please enter a valid password.',getEl('username'), 'pword');
                getEl('password').value = hex_md5(getEl('pword').value);
                getEl('pword').value = '';    
                alert("password: " + getEl('password').value + " username:" + getEl('username').value); //everything seems to work fine up to this point - the alert shows that the two post variables have data in them, but they dissappear once the form is submitted.
                return getEl('loginform').submit();
        function checkLogin(frm, mode) {
            if(!frm.username.value)        return recheck('Please enter a username.',frm.username, 'uname');
            if(!valideml(frm.username)) return recheck('Please enter a valid username (Email Address Format).',frm.username, 'username');
            if(!frm.pword.value)        return recheck('Please enter a valid password.',frm.pword, 'pword');
            frm.password.value = hex_md5(frm.pword.value);
            frm.pword.value = '';
            if(mode == 'submit') {
                return frm.submit();
            }else {
                return true;
    Firefox isn't recognizing the post variables, they're just blank. IE seems to work just fine though.

    Edit: I fixed the problem. I had another unobtrusive JS file that was conflicting with it. Go figure, huh? Went right over my head. Anyway, all better .


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 04:21 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: