I have a php file that is basically a submission form. I want it to submit itself automatically. My problem, is that it seems that if I substitute the submit input field name by, for example, btnsubmit (so the submit function won't be invalid), a simple document.getElementById("myForm").submit() doesn't complete the job (since it's called inside another php file). It seems that the calling file requires the submit field name and value.

I'm a little bit confuse on how to make this work.

Any help is welcomed.

Kind regards,