nezbo Posted September 10, 2008 Share Posted September 10, 2008 Hi all What is the best way to auto submit a form i have this code but i can not get it to work I mamaged to get ti to work in IE but not in firefox, but now it dosent work atall? <form action="logging.php" method="post" name="theloginform" id="foo"> > <input type="hidden" name="theURL" value="<?php echo $url123; ?>"> <input type="hidden" name="unamess" value="<?php echo $usernames; ?>"> <input type="hidden" name="passwordss" value="<?php echo $passwordCript; ?>"> <input type="submit" name="subForm" id="subForm"> </form> <script type="text/javascript"> function myfunc () { var frm = document.getElementById("foo"); frm.submit(); } window.onload = myfunc(); </script> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.