Hi all.

I want to know in which case, it should use two forms in a one web page (example situations)

(Except that when the action pages are separate)….?

Recommended Answers

All 2 Replies

I don't see any point in using two forms, either you have specialy designed forms for each group on separated pages or you have general form for all where certain fields are excluded if you do not belong to selected group(if you vegetarian please provide additional data, if you wear glasses provide lense strenght etc)

I've seen some cases where it makes sense.
Mainly it would be one form that's completely made up of hidden components and is sent with background requests to generate on-demand content that's not shown when the page is first generated, and another with visible components that the user can actually fill the fields of.
But for most things you encounter when learning at least you'll never need things like that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.