Jump to content

[SOLVED] submitting a form


nezbo

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.