Question : html form/php

HI,

I would like to create dynamic forms depending on the selection of the user.

What is the best way of doing this:

IE they ask for simple request, they ask for sales, the form content changes, they ask for support the options change.

Should i create different html forms and then have a php selection, do i do it in javascript?

Does anyone have an example in php a simple one that i can amend?

Thanks.

Answer : html form/php

Then all you need is some divs that you will replace with.

Or Spans if you want them side by side.

Inside of dropdown1 place the first dropdown box code. In the others you can either leave blank or just put a default 'empty' dropdown box. At each option you will then just have an onclick event that calls the script above.

After that you just need a simple dropdown1.php page that will build your 2nd and/or 3rd dropdowns.
1:
2:
3:
4:
5:
6:
7:
<div id="dropdown1"></div>
<div id="dropdown2"></div>
<div id="dropdown3"></div>

<span id="dropdown1"></span>
<span id="dropdown2"></span>
<span id="dropdown3"></span>
Random Solutions  
 
programming4us programming4us