Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link at a page but pass querystring values 1

Status
Not open for further replies.

dom24

Programmer
Aug 5, 2004
218
0
0
GB
Hi,

I want to create a link to a page but pass the login details through the querystring ao that the user stays logged in. Is this possible?
The user logs in, fills out a form, then I want a link so they can fill out another form which takes them back to teh start but keeps them logged in.
At the momen i'm jsut using a href but this doesn't carry the values with it.

Thanks.
 
All you have to do is add the qwuerystring values to your link and then read them on your other page:
Code:
on page with link:
<a href="myPage.asp?user=<%=MyASpUserVar%>">Clicky clicky</a>

on other page:
Dim myVar
myvar = Request.Querystring("user")

You could check out the ASP reference on W#Schools.com. They cover things like this in the ASP section (Request object reference).

-T

barcode_1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top