Hi
How do I create form data and auto-submit it using header() statements?
I need to create some data from a php script that will auto submit to another web-page.
Cookies aren't any use here as the destination site may be https or not the same as the source.
I don't want to just generate a form full of hidden fields that I want the target script to read and put a submit button on the screen because I need it to be relatively transparrent.
I've tried the hidden type and then javascript to call the submit function but in IE4 (this has to be backwards compat) the script:
<form method=post action="target.url" name="myform">
<input type=hidden name="field" value="value">
</form>
<script language=JavaScript>
document.myform.submit();
</script>
Gives me an error in IE4 but works fine in IE5 or NS4.x
Any suggestions?
James