Search Webmaster Help and Solution

Merging two login forms

Ill try to keep this simple, I need to make so that when someone logs in using the PRIMARY FORM they are also automatically logged into a SUB FORM using the same username and pass that they entered in the primary form. I hope this makes sense:

PRIMARY FORM

HTML Code: <form action="http://primary...link.com/login.php" method="post" onSubmit="return disablePage();" class="formLayer"><fieldset><legend>Login</legend><br><label>Your Email Address:</label><input type="text" name="email" value="" size="50"><br><label>Password:</label><input type="password" name="password" value="" size="25"><br><br><label></label><input type="submit" name="submitBtn" value="Login" class="btn" onmouseover="this.className=btnhov" onmouseout="this.className=btn"> <input type="reset" name="resetBtn" value="Reset" class="btn" onmouseover="this.className=btnhov" onmouseout="this.className=btn"><br><br><input type="hidden" name="url" value="/"></fieldset></form> -----------------

SUB FORM

HTML Code: <form action="http://site2...link.com/login.php" method="post"> <input type="hidden" name="action" value="login" /> <table class="no-backgrounds vtop tbullet" cellpadding="0" cellspacing="0"> <tr> <th style="width:100px;"><label>Email</label></th> <td><div class="holder"><div class="fixedtooltip"><p>Please enter your email address.<br />This field is required.</p></div></div> <input type="text" value="" name="email" /></td> </tr> <tr> <th style="width:100px;"><label>Password</label></th> <td><div class="holder"><div class="fixedtooltip"><p>Please enter your login password.<br />This field is required.</p></div></div> <input type="password" name="password" value="" /></td> </tr> <tr> <th class="nobullet">&nbsp;</th> <td><input class="fleft" type="image" src="/img/buttons/login.png" /></td> </tr> </table> </form> Ill try to keep this simple, I need to make so that when someone logs in using the PRIMARY FORM they are also automatically logged into a SUB FORM using the same username and pass that they entered in the primary form. I hope this makes sense:

PRIMARY FORM

HTML Code: <form action="http://primary...link.com/login.php" method="post" onSubmit="return disablePage();" class="formLayer"><fieldset><legend>Login</legend><br><label>Your Email Address:</label><input type="text" name="email" value="" size="50"><br><label>Password:</label><input type="password" name="password" value="" size="25"><br><br><label></label><input type="submit" name="submitBtn" value="Login" class="btn" onmouseover="this.className=btnhov" onmouseout="this.className=btn"> <input type="reset" name="resetBtn" value="Reset" class="btn" onmouseover="this.className=btnhov" onmouseout="this.className=btn"><br><br><input type="hidden" name="url" value="/"></fieldset></form> -----------------

SUB FORM

HTML Code: <form action="http://site2...link.com/login.php" method="post"> <input type="hidden" name="action" value="login" /> <table class="no-backgrounds vtop tbullet" cellpadding="0" cellspacing="0"> <tr> <th style="width:100px;"><label>Email</label></th> <td><div class="holder"><div class="fixedtooltip"><p>Please enter your email address.<br />This field is required.</p></div></div> <input type="text" value="" name="email" /></td> </tr> <tr> <th style="width:100px;"><label>Password</label></th> <td><div class="holder"><div class="fixedtooltip"><p>Please enter your login password.<br />This field is required.</p></div></div> <input type="password" name="password" value="" /></td> </tr> <tr> <th class="nobullet">&nbsp;</th> <td><input class="fleft" type="image" src="/img/buttons/login.png" /></td> </tr> </table> </form>

View Complete Thread with Replies

Related Items

Query failed: connection to localhost:3354 failed (errno=111, msg=Connection refused).