So lets say I have some forms like this:
Form A:
<form name="formA">
<input type="text" name="username">
<input type="text" name="password">
</form>
Form B:
<div style="display:none;">
<form name="formB">
<input type="text" name="username">
<input type="text" name="password">
</form>
</div>
Form C:
<div style="display:none;">
<form name="formC">
<input type="text" name="username">
<input type="text" name="password">
</form>
</div>
Forms B and C are hidden, I have them there because after a user enters their username and password in form A, I need to also use that username and password information they submitted to be used in forms B and C, and then submit all forms at once. This is so I can submit a login to multiple parts of my website using just 1 login form. How exactly should I go about doing this?
-Thanks!
If you don’t need https for login function, you can try this using jQuery and ajaxForm plugin:
When you send an ajax request to the server for login at B and C, if your server send back a cookie on successful login, I think you’re good to go 😛