Solved

url parameters

Posted on 2003-11-17
4
260 Views
Last Modified: 2013-12-24
I am submitting an html form to a cfm page. url would be like this :
http://localhost/mycfm.cfm?answer1=myfirstanswer&answer2=mysecondanswer&numberofanswers=2
using the amount of questions variable how can I pull out my values and put them into a cf variable on the page ?
My problem is with the cfparam tag.
if I do this :
<cfparam name = answer#1#> this line is fine but I can't access the variable as its being created dynamically. Is thiere some other way to do this like request.getattribute("answer1") ????


Thanks
Spunog
0
Comment
Question by:spunog
  • 2
  • 2
4 Comments
 
LVL 9

Expert Comment

by:CFDevHead
ID: 9764762
refer to this paq
http://www.experts-exchange.com/Web/WebDevSoftware/ColdFusion/Q_20746590.html 

If this does not work let me know.
0
 

Author Comment

by:spunog
ID: 9764832
say theres a variable in the url called answer1 , I need to pull that out of the url but I am creating the variable name by doing answer#i# . If I try and access the variable answer#i# I get errors !!
Thanks
Spunog
0
 
LVL 9

Accepted Solution

by:
CFDevHead earned 125 total points
ID: 9764864
<cfoutput>
#evaluate('answer'& i)#
</cfoutput>
0
 

Author Comment

by:spunog
ID: 9764929
Thanks a lot Buddy !
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question