Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2001-08-15
8
Medium Priority
?
150 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 200 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
Optimum High-Definition Video Viewing and Control

The ATEN VM0404HA 4x4 4K HDMI Matrix Switch supports 4K resolutions of UHD (3840 x 2160) and DCI (4096 x 2160) with refresh rates of 30 Hz (4:4:4) and 60 Hz (4:2:0). It is ideal for applications where the routing of 4K digital signals is required.

 
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

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
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.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

715 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