ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 7th, 2004, 02:34 PM
myhomie myhomie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 20 myhomie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Drop Down Box in Forms

I am not sure how to do a drop down box in Cold Fusion in regarding to forms? Would I use something with cfindex or another tag/function? And how would I enter those fields in?
Thanks!

Reply With Quote
  #2  
Old October 7th, 2004, 02:51 PM
Ebot's Avatar
Ebot Ebot is offline
Meatball Surgeon
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Elbow deep in code
Posts: 1,180 Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)  Folding Points: 27021 Folding Title: Starter FolderFolding Points: 27021 Folding Title: Starter Folder
Time spent in forums: 1 Week 4 Days 9 h 53 m 19 sec
Reputation Power: 755
Use the cfselect tag (take a look in your manual on how to use).

Reply With Quote
  #3  
Old October 7th, 2004, 03:07 PM
mikemac mikemac is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Greenville NC
Posts: 70 mikemac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 15 m 24 sec
Reputation Power: 4
Thumbs up Same as HTML

Quote:
Originally Posted by myhomie
I am not sure how to do a drop down box in Cold Fusion in regarding to forms? Would I use something with cfindex or another tag/function? And how would I enter those fields in?
Thanks!


You can use regular HTML form style for <SELECT>
<select name="State">
<option value="choose">[CHOOSE ONE]</option>
<option value="AB">Alabama </option>
</select>

And when you use <CFINSERT> on your actionpage it alls comes together. No fuss No muss!!!!!!

Reply With Quote
  #4  
Old October 7th, 2004, 03:23 PM
myhomie myhomie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 20 myhomie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
drop down- cont.

Quote:
Originally Posted by mikemac
You can use regular HTML form style for <SELECT>
<select name="State">
<option value="choose">[CHOOSE ONE]</option>
<option value="AB">Alabama </option>
</select>

And when you use <CFINSERT> on your actionpage it alls comes together. No fuss No muss!!!!!!



I am not going to be inserting what I am selecting though. I am going to be comparing it in a serach. Do you have any suggestions?

Reply With Quote
  #5  
Old October 7th, 2004, 03:24 PM
myhomie myhomie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 20 myhomie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
cfselect spacing

Quote:
Originally Posted by Ebot
Use the cfselect tag (take a look in your manual on how to use).



Is there any way to get the spacing on the cfselect statement, so I can actually see the choices that I type in. Right now the box is really really small.

Thanks!

Reply With Quote
  #6  
Old October 7th, 2004, 03:38 PM
mikemac mikemac is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Greenville NC
Posts: 70 mikemac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 15 m 24 sec
Reputation Power: 4
Thumbs up Use &nbsp; or <br />

Quote:
Originally Posted by myhomie
Is there any way to get the spacing on the cfselect statement, so I can actually see the choices that I type in. Right now the box is really really small.

Thanks!

Use &nbsp; or <br /> depending on if you want more space on the sides or inbetween.

<select name="booty" >
<option value="big">&nbsp;&nbsp;big&nbsp;&nbsp;</option>
<option value="bigger">bigger<br /></option>
<option value=" biggest">&nbsp;&nbsp; biggest &nbsp;</option>

no cfselect needed......keep it easy

Last edited by mikemac : October 7th, 2004 at 03:39 PM. Reason: more clarity

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Drop Down Box in Forms


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not 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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway