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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old March 30th, 2005, 12:40 PM
jpixel jpixel is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 47 jpixel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 50 m 41 sec
Reputation Power: 4
passing the value of a list/menubox?

<form name="form1" method="post" action="rateprocess.cfm?id=#ItemID#&rating=$(ratebox)">
<select name="ratebox" id="ratebox">
<option value="5" selected>5 - Excellent</option>
<option value="4">4 - Very good</option>
<option value="3">3 - Average</option>
<option value="2">2 - Below Average</option>
<option value="1">1 - Poor</option>
</select>
<input type="submit" name="Submit" value="Submit">
</form></td>


I have a menubox called ratebox, users choose a rating 1-5. I nned to pass this value to the next page (rateprocess.cfm) any ideas how to do this?

Reply With Quote
  #2  
Old March 30th, 2005, 02:18 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,611 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 9 h 10 m 21 sec
Reputation Power: 53
I'm not sure what you are asking. If you submit the form and it has a field named "ratebox", the target page will already have the value as form.ratebox.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #3  
Old March 31st, 2005, 08:49 AM
jpixel jpixel is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 47 jpixel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 50 m 41 sec
Reputation Power: 4
yeah i tried <cfset rating='form1.ratebox'> but no luck

Reply With Quote
  #4  
Old March 31st, 2005, 10:34 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,611 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 9 h 10 m 21 sec
Reputation Power: 53
I still don't understand what you are asking. If you have a form like this and you submit it:

<form name="form1" method="post" action="rateprocess.cfm?id=#ItemID#">
<select name="ratebox" id="ratebox">
<option value="5" selected>5 - Excellent</option>
<option value="4">4 - Very good</option>
<option value="3">3 - Average</option>
<option value="2">2 - Below Average</option>
<option value="1">1 - Poor</option>
</select>
<input type="submit" name="Submit" value="Submit">
</form>

Then on the rateprocess.cfm page, you will be able to reference the rating as #form.ratebox#.

Reply With Quote
  #5  
Old March 31st, 2005, 11:27 AM
jpixel jpixel is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 47 jpixel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 50 m 41 sec
Reputation Power: 4
Quote:
Originally Posted by kiteless
I still don't understand what you are asking. If you have a form like this and you submit it:

<form name="form1" method="post" action="rateprocess.cfm?id=#ItemID#">
<select name="ratebox" id="ratebox">
<option value="5" selected>5 - Excellent</option>
<option value="4">4 - Very good</option>
<option value="3">3 - Average</option>
<option value="2">2 - Below Average</option>
<option value="1">1 - Poor</option>
</select>
<input type="submit" name="Submit" value="Submit">
</form>

Then on the rateprocess.cfm page, you will be able to reference the rating as #form.ratebox#.


yeah i know but it doesn't work, try it...the next page the code I have is:

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>

<cfoutput>#url.id#</cfoutput>
<cfoutput>#form1.ratebox#</cfoutput>

</body>
</html>

Reply With Quote
  #6  
Old March 31st, 2005, 11:28 AM
jpixel jpixel is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 47 jpixel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 50 m 41 sec
Reputation Power: 4
oh wait, i was using form1 it should be just form...thats weird, but it works now! thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > passing the value of a list/menubox?


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