Solved

url parameters

Posted on 2003-11-17
4
227 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Migration from IIS6 onto IIS7 6 46
How to redirect https://www to non-www? 6 71
excpetion with multiple catch 11 105
Website Test Question 6 101
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now