Page 1 of 1

Sending POST variables from 2 forms in the same time

Posted: Thu Oct 25, 2007 10:40 am
by biancamm
Hello,

Please help me on this one!

I have a HTML (TPL) where there are 2 forms. When I click on a button I want to send to a php file input elements from both of the forms.

Do you have an idea how can I do this without copying the inputs from a form to the other?

Thank you!

Posted: Thu Oct 25, 2007 10:43 am
by John Cartwright
You can only submit one form at a time, but perhaps you could do some tricky business using cURL

Posted: Thu Oct 25, 2007 10:43 am
by s.dot
Sounds like a poor design. Why would you ever need to submit two forms at the same time? Perhaps you could explain your situation and a more elegant solution could be hypothesized.

Posted: Thu Oct 25, 2007 11:06 am
by CoderGoblin
Another one who thinks this a bad basic design. It is possibly to possibly to get it working with javascript (on submit) to also include the second form but anything that is dependant on javascript should be avoided in my opinion.

Posted: Thu Oct 25, 2007 5:15 pm
by Kieran Huggins
What they said.