Get ready for BLACK FRIDAY shopping starting in

Forums

ASP

This topic is locked

Multiple Forms on one ASP Page

Posted 10 Mar 2004 17:19:32
1
has voted
10 Mar 2004 17:19:32 Jack Cider posted:
I have two existing HTML forms that I'd like to combine into one page. The trick is, I'd like the page to first display a question, the answer of which will determine which of the two forms are displayed. Could anyone give me some assistance on how to do this? ASP seems like a good way to go with this, but I'm pretty much an ASP newbie. Any help is much appreciated. Thanks


Jack

Replies

Replied 11 Mar 2004 02:16:14
11 Mar 2004 02:16:14 Phil Shevlin replied:
If your a newbie, the easiest way would be to do it with three separate pages.

Page 1 : initial question - response sends you to one of two pages

The reason I say this is because your code for dealing with the different possible form submissions might get cumbersome for you.

However, what you say is possible. Use JS layers to show the apprpriate form (based on question 1).
Replied 11 Mar 2004 22:32:26
11 Mar 2004 22:32:26 Jack Cider replied:
<font face='Arial'></font id='Arial'>glide,
Thanks for your help. My original setup with these two forms did exactly what you recommended. I had one HTML page asking the initial question, the answer to which redirected the user to one of the two forms. However, that solution wasn't good enough for my boss, so I suggested combining it all to one page. I ended up finding some open source JS code which did exactly what I needed to to do, so I put the code in my HTML page and copied and pasted my two forms in. Worked like a charm.... Thanks again for the advice.


Jack

Reply to this topic