Auto Posting of authentication form.
-
Is anyone using their own login system and callign then authentication form automatically to force login through captive portal? Im trying to do this, works fine manually, but when i try and force the http post with etc then it doest work.
Process is this:
1. Plain HTML page on captive portal diverts to PHP page.
2. PHP forces redirect to my central server login pages.
3. Central server accepts PIN number and creates username / password combo.
4. Central server diverts to Dologin.php (on the captive portal) to force the Radius authentication.As i say, the form on dologin.php is showing, with the correct values entered, and clicking submit button authenticates ok. I just cant seem to force posting using an onload event.
Code is attached below. Any help much appreciated.
<title>Submitting Login - please wait.</title> <form id="dologin" name="dologin" method="post" action="<?php echo $_GET[" portal_action"];="" ?="">"> "> "> </form>
-
Try:
-
Worked a treat. Just substituded the submit button for a hidden tag.
Many thanks.
Regards
David