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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Javascript or ASP help

Reply to Message Icon

Name: SteveWalsh
Date: May 20, 2005 at 19:33:29 Pacific
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>



Sponsored Link
Ads by Google

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

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;


0

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

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


0

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

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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







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


Sponsored links

Ads by Google


Results for: Javascript or ASP help

javascript OR html help? www.computing.net/answers/programming/javascript-or-html-help/16803.html

Javascript in ASP? www.computing.net/answers/programming/javascript-in-asp/5436.html

C++ or Perl help www.computing.net/answers/programming/c-or-perl-help/6287.html