home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1863
Discussions: 188,398, Posts: 2,243,593, Members: 232,628
Old August 9th, 2004, 04:45 PM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Aug 2004
Posts: 6
Question
Nesting Forms Problem

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 is offline   Reply With Quote
Old August 9th, 2004, 05:09 PM     #2 (permalink)
Junior Member
 
Join Date: Aug 2004
Posts: 6
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.

mindytruitt is offline   Reply With Quote
Old August 10th, 2004, 12:25 AM     #3 (permalink)
Newbie
 
filipino's Avatar
 
Join Date: May 2004
Location: Philippines
Posts: 3,894
your working on colfusion right what database are you using? you can create a drop down menu on you form by creating a drop down menu on database.

filipino is offline   Reply With Quote
Old August 10th, 2004, 11:18 AM     #4 (permalink)
Junior Member
 
Join Date: Aug 2004
Posts: 6
Red face

I have two seprate databases pulling the info for the drop downs, but it can be easily changed back into one table. That was just the only way I could get it to work.

VCContact
- CustomerID (Auto Number)
- CusID (Number)
- Customer (Text)

VCContact2
- ContactID (Auto Number)
- CusID (Number)
- SectionID (Number)
- Contact (Text)
- Email (Text)

I have a different table that the form submits to.

VCOrders
- ID (Auto number)
- Customer (Text)
- Contact (Text)
- Email (Text)
- Make (Text)
- Model (Text)
- Serial (Number)
- SalesRep (Number)
- Contract (Text)
- PurchaseDate (Date)
- ExpirationDate (Date)
- Comments (Text)

Would the 2nd drop down change when the first is selected??

Thanks
mindytruitt is offline   Reply With Quote
Old August 10th, 2004, 12:01 PM     #5 (permalink)
Kawaru wa yo!
 
Whir's Avatar
 
Join Date: Oct 2001
Location: Kingsford, MI
Posts: 16,137
Blog Entries: 7
It's been a long time since I've touched ColdFusion, but I think you can create an event that updates the second drop-down when an option is selected in the first.

If ColdFusion won't do it, you could probably write a simple javascript to do it.
Whir is online now   Reply With Quote
Old August 10th, 2004, 12:21 PM     #6 (permalink)
Junior Member
 
Join Date: Aug 2004
Posts: 6
Cool

I am using a form in Javascript for the drop downs which works great but my problem is that the drop downs are going inside another form that submits to a database and because of the nested or multilevel forms, it doesn't work. Do you know any other way?
mindytruitt is offline   Reply With Quote
Old August 10th, 2004, 07:16 PM     #7 (permalink)
Junior Member
 
Join Date: Aug 2004
Posts: 6
I got it!

Thanks for all the Help
Mindy
mindytruitt is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook VBS Programming w/ Forms nsohenick Applications and Operating Systems 2 July 17th, 2003 10:21 AM
Digital Research CD-RW rebate forms(Bestbuy.com)?? onlyvinay General Discussion and Buyer Guidance 3 July 12th, 2003 05:31 AM
E-Bay / PayPal Scam e-mail Not 2 Techie General Discussion and Buyer Guidance 4 March 8th, 2003 10:54 PM
Odd VB bug cerise Webmastering and Programming 3 October 3rd, 2002 03:34 PM
Combo Boxes (Urgent Help required) shahzadsk Webmastering and Programming 7 August 5th, 2002 12:34 AM

Most Active Discussions
Is It Just Me? (2904)
Unarmed man on his stomach shot by .. (6)
3-days in and no threads about Gaza (161)
New Build ( Finally ) (6)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
Folderchat Weekday thread (444)
Upgrading RAM (6)
Recent Discussions
For cheap price and good qualit.. (1)
Left 4 Dead Small Freezes (3)
RCA 52Inch HDTV wont turn on (4)
wishin i could edit my aol prof.. (0)
Sporadic internet connectivity (2)
Assassins Creed PC Problems (40)
I think my PSU is dieing (1)
building a gaming computer, inp.. (0)
Iming and surfing slowed down (3)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 03:26 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28