aspose file tools*
The moose likes Beginning Java and the fly likes 2 forms in a single page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "2 forms in a single page" Watch "2 forms in a single page" New topic
Author

2 forms in a single page

k bben
Greenhorn

Joined: Dec 29, 2004
Posts: 1
can i have more than one form in a page?
if yes, how do i submit all of them at one shot

function f1(){

document.form1.submit();
document.form2.submit();
}

it is a html page with javascript on it .
the page is created by a servlet
[ December 29, 2004: Message edited by: k bben ]
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
I guess you're talking about JSPs?

yes, you can have more than one form on a page.
no, you cannot submit them all at once.


42
Martin Lerchster
Greenhorn

Joined: Nov 29, 2004
Posts: 10
All information you need for one submit you should have in one form!


Why do you need the second one and why do you want to submit both?

wr
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: 2 forms in a single page