How can I have a form submission open a new website and sign in to that site? I'd like to have a user be able to click a dropdown on a website, then enter their email and password to sign in to a different website, and upon submission, have it open the website with them signed in.
For example, with an email, password, and website like this.
<form method="post" class="signin" action="https://www.walmart.com/account/login?tid=0&returnUrl=%2F">
<input type="hidden" name="form_posted" value="true">
<input type="hidden" name="action" value="true">
<fieldset class="textbox">
<label class="username">
<span>Email</span>
<input id="username" name="username" value="" type="text" autocomplete="on" required>
</label>
<label class="password">
<span>Password</span>
<input id="password" name="password" value="" type="password" required>
</label>
</fieldset>
<fieldset class="remb">
<button class="submit button" type="submit button" value="Log in">Sign in</button>
</fieldset>
</form>
Do I need to have the action="" some php file with a script?
Any ideas would be much appreciated. Thank you in advance for all your help!
*** Note: I know how to have a form open to a new page by adding the attribute target="_blank".