Solved

Passing Variables at the end of form to a new page.

Posted on 2001-08-15
8
146 Views
Last Modified: 2013-12-24
Let me clarify,
after my form has been submitted I have a page that would say your data has been posted.  underneath that I would like to have a text link that once pressed would carry over some variables that were created on the previously submitted form, so they can then be used as hidden fields used to update a table on the new page via a form.

Now I have tried all Basic ways of carrying over a variable ie <input type="hidden/text" name="My field" value="#previously created#">

that did not work..

so I tried creating a query that would pull that value out of the db and then carrying it over with the text link. that did not work.  if any one can show me the syntax or pointme in the right direction it would be greatly appreciated.
0
Comment
Question by:jriver12
[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
  • 3
  • 3
  • 2
8 Comments
 
LVL 19

Accepted Solution

by:
cheekycj earned 50 total points
ID: 6389211
You have 3 options:

1. Set the information  in Session and retrieve it on the next page.

2. Set the information as hidden params in a form (that is invisible) but make the form submit via clicking the link:
<a href="javascript:void(0);" onClick="document.myHiddenForm.submit();">Click to Continue</a>

3. URL Encode the vars in the  link:

Create a list of var and value combos.

<a href="nextpage.cfm?<CFOUTPUT>#URLENCODE(mylist)#</CFOUTPUT>">Click to Continue</a>
0
 

Author Comment

by:jriver12
ID: 6389275
CheekyCJ
do you live on this site?
you seem to always jump on to my questions.  not that I have a problem with that.  

I am trying your suggestions now.  I'll get back.
0
 
LVL 3

Expert Comment

by:TEFKASG
ID: 6389302
Or you could just pass the variable through the URL as such:

<a href="GoTopage.cfm?data1=<cfoutput>#data1# </cfoutput> &data2=<cfoutput>#data2#</cfoutput>
&data3=<cfoutput>#data3#</cfoutput> "> link text </a>
Etc.

:>)
0
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 
LVL 19

Expert Comment

by:cheekycj
ID: 6389343
Yup, that was my 3rd option.

I don't live on this site.. I just check in :-)

CJ
0
 
LVL 3

Expert Comment

by:TEFKASG
ID: 6389374
>>Yup, that was my 3rd option.

  Except I am just doing it manually, without using #URLENCODE(mylist)#, so it is not EXACTLY the same way of doing it.  :>)
0
 
LVL 3

Expert Comment

by:TEFKASG
ID: 6389375
But it does exactly the same thing.  :>)
0
 

Author Comment

by:jriver12
ID: 6389376
cheekycj
thanks again you guys on EE are awsome.
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 6389379
TEFKASG: Yup.

jriver12: Thanx.  We try our best :-)

CJ
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

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…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
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…

731 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