2 forms, 1 html file

A

Anonymous

Guest
Wopkeuh said:
I looked it up on the internet and I found out that it's impossible to use multiple forms in 1 file when using certain browsers.

I'd be interested to know where you found this bit of info, because it's completely false. Well, not completely, but it may be said that no modern browser has any trouble with multiple forms on a single page.

That said, there are a couple of things you can do to keep the browser from getting confused. First, make sure your form is closed. Start your form with <form action=...> and end it with </form>. Make sure none of the first form is between the second form's tags and vice versa. If you happen to be designing this form with Dreamweaver or the like, this is a likely culprit, but it's something to watch out for regardless. Second, in order to test your theory, try giving your submit buttons different names, e.g. give the first form a submit button <submit name="form1_submit"> ad your second form a submit button <submit name="form2_submit"> and then check to see which one was clicked.

Those are all of my suggestions for now. This is an odd problem, but not one that should be too difficult to sort out.
 
Back
Top