Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

url parameters

Posted on 2003-11-17
4
Medium Priority
?
279 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 500 total points
ID: 9764864
<cfoutput>
#evaluate('answer'& i)#
</cfoutput>
0
 

Author Comment

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

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

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…
What You Need to Know when Searching for a Webhost Provider
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

647 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