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> Link to comment https://forums.phpfreaks.com/topic/123565-solved-submitting-a-form/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.