How to submit a form when page loads using JavaScript?
PHP Snippet 1:
<script type="text/javascript">
$(document).ready(function(){
document.theForm.submit();
});
</script>
<script type="text/javascript">
$(document).ready(function(){
document.theForm.submit();
});
</script>