Link to home
Start Free TrialLog in
Avatar of jriver12
jriver12

asked on

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

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.
ASKER CERTIFIED SOLUTION
Avatar of cheekycj
cheekycj
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jriver12
jriver12

ASKER

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.
Avatar of TEFKASG
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.

:>)
Yup, that was my 3rd option.

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

CJ
>>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.  :>)
But it does exactly the same thing.  :>)
cheekycj
thanks again you guys on EE are awsome.
TEFKASG: Yup.

jriver12: Thanx.  We try our best :-)

CJ