Solved

url parameters

Posted on 2003-11-17
4
268 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

691 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