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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old December 14th, 2004, 12:06 PM
radone radone is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 12 radone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 35 m 25 sec
Reputation Power: 0
Querying Radio Selection

I know I can use a query in a text field to return a database value on my update page:

<cfoutput>
<input name="LOANTYPE" type="text" value="#Trim(GetProperty.LOANTYPE)#" size="20">
</cfoutput>

Is it possible to do this with a radio button and show which selection the user previously clicked?

For instance:
<input type="radio" name="R1" value="yes">
<input type="radio" name="R1" value="no">

If they clicked "no" can the 2nd selection show as "checked?"

Reply With Quote
  #2  
Old December 14th, 2004, 12:22 PM
VelvettFogg VelvettFogg is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 34 VelvettFogg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 13 m 46 sec
Reputation Power: 4
<input type="radio" name="R1" value="yes" <cfif GetProperty.LOANTYPE is 'yes'> checked </cfif> >
<input type="radio" name="R1" value="no" <cfif GetProperty.LOANTYPE is 'no'> checked </cfif> >


Like that


Quote:
Originally Posted by radone
I know I can use a query in a text field to return a database value on my update page:

<cfoutput>
<input name="LOANTYPE" type="text" value="#Trim(GetProperty.LOANTYPE)#" size="20">
</cfoutput>

Is it possible to do this with a radio button and show which selection the user previously clicked?

For instance:
<input type="radio" name="R1" value="yes">
<input type="radio" name="R1" value="no">

If they clicked "no" can the 2nd selection show as "checked?"

Reply With Quote
  #3  
Old December 14th, 2004, 12:34 PM
radone radone is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 12 radone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 35 m 25 sec
Reputation Power: 0
Much thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Querying Radio Selection


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 2 hosted by Hostway