Computing.Net > Forums > Programming > Javascript or ASP help

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Javascript or ASP help

Reply to Message Icon

Original Message
Name: SteveWalsh
Date: May 20, 2005 at 19:33:29 Pacific
Subject: Javascript or ASP help
OS: Server 2003
CPU/Ram: 512
Comment:

Hi i'm writing a script for a site i'm making that will allow users to login. I used ASP, but my problem is after they login I want them to be redirected to another page, along with a variable which stores their name, i have it on one of those GET things. (i'm new at this whole web thing i'm more of an experience C++ programmer) I figured out a way to do it with javascript except i have no idea how to add the variable to the URL. this is the output i want.

usr.asp?name=(variable name here)

this is what i've tried tell me how stupid i am, then tell me how i can do it Thanks for the help :)

<SCRIPT language="JavaScript">

</SCRIPT>


Report Offensive Message For Removal


Response Number 1
Name: SteveWalsh
Date: May 20, 2005 at 19:35:33 Pacific
Reply: (edit)

Whoa something got mixed up

i'll try it agian between the script tags should be this (assuming it works :))

<%
dim usr
usr=Request.QueryString("name")
%>
window.location=usr;


Report Offensive Follow Up For Removal

Response Number 2
Name: Michael J (by mjdamato)
Date: May 21, 2005 at 00:55:14 Pacific
Reply: (edit)

You need to look into saving the username as a session variable using ASP. Just do a Google search and I'm sure you'll find a wealth of info.

Michael J


Report Offensive Follow Up For Removal

Response Number 3
Name: SteveWalsh
Date: May 21, 2005 at 06:11:20 Pacific
Reply: (edit)

THANK YOU! i didn't try the sessions (though from what i've read i think i could've figured it out to work. But searching for that lead me to something else that worked. So thank you again.


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you own an iPhone?

Yes
No, but soon
No


View Results

Poll Finishes In 6 Days.
Discuss in The Lounge
Poll History




Data Recovery Software