Click to See Complete Forum and Search --> : ASP variables into links


ozpo1
07-18-2007, 11:01 AM
Hi, I want to receive variables from the last page and implement them into links on my new page, meaning:
<%
time="Immediately"
foryou="yes"
zipcode="91367"
%>

Now, I want to implement this values into this link:

www.getcontractor.com/project.asp?time&foryou&zipcode

My problem is that these are asp values, and my link is in html.
How can I do it?
Thanks a lot, I love this forum!
Oz

nbcrockett
07-18-2007, 12:05 PM
There are a couple of ways to do that. If you are using a form then you can set them as form values to be submitted to the second page when the person submits their form. Or if they are getting to the second page via a link then you can set the values as variables in the link that they click.

nbcrockett
07-18-2007, 12:07 PM
You could also set them as Session variables or put them into a cookie. However, I don't suggest that generally because Session variables take up server memory and cookies aren't always enabled on the clients machine.