Hi, please help me.
I have a few forms and I need send there forms by one submit input.
They have the same form action and almost the same fields. It is like a referral page.
for example
[code=html]
<form>
<input type="text" value="1" name="id" id="id" />
</form>
<form>
<input type="text" value="2" name="id" id="id" />
</form>
<form>
<input type="text" value="3" name="id" id="id" />
</form>
[/code]
i need to send it all at once..
i have a javascript function that during onclick event it will submit all the forms
[code=javascript]
function submitAll(){
document.form1. submit();
document.form2. submit();
document.form3. submit();
document.form4. submit();
}
[/code]
..That is the function but it will only send the last form (form4)
Any ideas regarding this is a big help for me..
Thnx
I have a few forms and I need send there forms by one submit input.
They have the same form action and almost the same fields. It is like a referral page.
for example
[code=html]
<form>
<input type="text" value="1" name="id" id="id" />
</form>
<form>
<input type="text" value="2" name="id" id="id" />
</form>
<form>
<input type="text" value="3" name="id" id="id" />
</form>
[/code]
i need to send it all at once..
i have a javascript function that during onclick event it will submit all the forms
[code=javascript]
function submitAll(){
document.form1. submit();
document.form2. submit();
document.form3. submit();
document.form4. submit();
}
[/code]
..That is the function but it will only send the last form (form4)
Any ideas regarding this is a big help for me..
Thnx
Comment