php form problem
Posted: Sat Jul 08, 2006 8:19 am
Firstly i'm pretty new to php so please excuse any glaring ommissions. I've had a look through the old posts and can't seem to find what I'm looking for.
I have a form submited in html to a php page for validation.
If there is an error I want to fill in values into a form via hidden fields on this php page and automatically submit it to an error page with the values from the hidden field.
I know this can be done using javascript:
<SCRIPT LANGUAGE="JavaScript">
document.myFormName.submit();
</SCRIPT>
However, I am also aware that not every browser will run javascript, and I was wondering if there is a simple way I can automatically submit this form using more robust php?
Sorry if this has been covered before, i cant seem to find it anywhere.
I'm grateful for any help or direction.
Cheers
I have a form submited in html to a php page for validation.
If there is an error I want to fill in values into a form via hidden fields on this php page and automatically submit it to an error page with the values from the hidden field.
I know this can be done using javascript:
<SCRIPT LANGUAGE="JavaScript">
document.myFormName.submit();
</SCRIPT>
However, I am also aware that not every browser will run javascript, and I was wondering if there is a simple way I can automatically submit this form using more robust php?
Sorry if this has been covered before, i cant seem to find it anywhere.
I'm grateful for any help or direction.
Cheers