Time:
Scotland: Fri, 10:03 pm
Rhode Island: Fri, 5:03 pm
Florida: Fri, 5:03 pm
New Mexico: Fri, 3:03 pm
California: Fri, 2:03 pm

Click here to visit Livelife365.com

Click here to visit nmdarts.com



Buy this Ad Space.

180px wide.

Please get in touch with KH@ if you are interested and make an offer.

CLICK HERE TO GET AUCTION BAR NOW
US$10 per year - Save $100s!
The Fabulously Unfair
WebX Auction Bar. For Ebay etc.
Ro-Sham-Bo the opposition. Laugh like Eric Cartman when you win! CLICK HERE NOW!


More information and sign-up.

WebXpertz Hosting.
Custom fit from $5pm. PHP/MySQL
You'll save money, we'll save money. Seems fair to me. Interested? If so Please PM me here and tell me what you need. Thanks!


Please click here for more information

For continued disscussion on this topic : Nesting Form Problem


mindytruitt
08-09-2004, 09:40 PM
I am not even sure it is possible, but I wanted to see if I could nest forms. Both forms work indivdually but when put together I can't get them to work. Any help??

<form name="contact" method="post" action="VCEntryVerify.cfm">
<input type="text" name="PurchaseDate">

<FORM NAME="categoryform" METHOD="POST" ACTION="">

<SELECT NAME="Customer" onChange="change_Contact_menu(this.selectedIndex);">
<OPTION VALUE="null" selected>Customer</OPTION>
<OPTION VALUE="null">---------------------------------</OPTION>
<CFOUTPUT QUERY="Customer">
<option value="#CustomerID#">#Customer#</option>
</CFOUTPUT>
</SELECT>

<SELECT NAME="Contact_select" >
<OPTION VALUE="null" selected>Contact
<OPTION VALUE="null">---------------------------------
<OPTION VALUE="null">
<OPTION VALUE="null">
<OPTION VALUE="null">
</SELECT>

</FORM>

<input type="hidden" name="Email">
<input type="submit" value="submit">
</form>

Another question, is it possible to have the values that were selected in the drop down boxes (in the inner form) to be an input in the outer form?

Thanks,
Mindy

mindytruitt
08-09-2004, 09:59 PM
Overall I am tring to develop a form that submits and sends the info to a database. I am also wanting to have drop down boxes that change on click. The selected values in the drop down box should be sent to the database.

diades
08-09-2004, 10:28 PM
Hi Mindytruitt

Nested forms? Not a good idea. From your description, you only need one form. You can arrange in block with a dive inside the form or, even multiple "fieldset" tags. I am not into CF but, something like:

<form name="contact" method="post" action="VCEntryVerify.cfm">
<fieldset>
<label for="PurchaseDate">Purchase Date:<input type="text" id="PurchaseDate" name="PurchaseDate"></label>
</fieldset>
<fieldset>
<label for="Customer">Customer:
<select id="Customer" name="Customer" onChange="change_Contact_menu(this.selectedIndex);">
<option value="null" selected>Customer</option>
<option value="null">---------------------------------</option>
<cfoutput query="Customer">
<option value="#CustomerID#">#Customer#</option>
</cfoutput>
</select></label>
<label for="Contact_select">Contact:
<select id="Contact_select" name="Contact_select">
<option value="null" selected>Contact</option>
<option value="null">--------------------------------- </option>
<option value="null"></option>
<option value="null"></option>
<option value="null"></option>
</select>
</fieldset>
<fieldset>
<input type="hidden" name="Email">
<input type="submit" value="submit">
</fieldset>
</form>
I am assuming that you want to change the content of the second select according to the value seleced on the first? In that case I would download all values to arrays and populate client-side from there. Look at Vinny's site grassblad (http://members.aol.com/grassblad/) for two or three examples of achieving that.