Just as a follow up to this if its useful to people in the future, I had the same problem as this but couldnt do a:
<body onLoad="document.forms[0].submit()">
due to the fact that my headers were all in a seperate file. I used this method instead ...
<script>
document.form2.submit();
</script>
Note that this needs to be outside of the <?php ?> tags or echo'd to work, also you need to remove the submit button from that form. When you add this after your form it will automatically send the form as if someone pressed submit.
Will
http://www.williameaton.co.uk