is it possible to have a form within another form? ie: <Form ACTION="process.cfm" METHOD="post"> <Form ACTION="frm" METHOD=""> </form> </form>
i can't seem to be able to make it work. what i need it for is that i have a form, for people to fill out their address, and then the smaller form inside is just for the country and states/provinces. if the person selects USA as the country, then it lists the states in the next drop down. if they select canada, it lists the provinces in that drop down. i couldnt get it to work by placing the code in the inner form into the outer form, and i want it all submitted together.. so what can i do ? any help? thanks!!!
By nature the two forms can't live within each other. The problem is the submit doesn't know which form you are submitting. There are ways with certain browsers that you can do two forms, but it is not universal enough to work for everyone.
There are other ways you can do it. One way that I use, is to use two submit buttons.
it looks like the hotmail one submits a "change" variable with the onChange event of the drop down box.
You output a variable to each input value attribute. When the form loads initially there are no values so they deafault to whatever you have set up, or just come up blank. If you send values to itself it will load them into the appropriate boxes or make the changes to the select box.
I would use a switch case to handle all of the different possibilities for your select box.