|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
yeah i tried <cfset rating='form1.ratebox'> but no luck
|
|
#4
|
|||
|
|||
|
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#. |
|
#5
|
|||
|
|||
|
Quote:
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> |
|
#6
|
|||
|
|||
|
oh wait, i was using form1 it should be just form...thats weird, but it works now! thanks
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > passing the value of a list/menubox? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|