Page 1 of 1

Form Autopost

Posted: Wed Sep 16, 2009 4:26 pm
by dreagose
I have a form that I need to be automatically submitted when it only has 1 option in it.
The form is dynamically built from a database read using a customers' selection from a previous page.

I planned on activating the automatic submission using an IF statement.

Code: Select all

if ($c == 1) auto submit code here
 
Can this be done in PHP or HTML? if so, How?

Thanks

Re: Form Autopost

Posted: Wed Sep 16, 2009 5:17 pm
by jackpf
Javascript.

You can use

Code: Select all

document.forms['formid'].submit();