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
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 :)
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.
Summary: sorry if i posted this in wrong section.. (web development??) well i need a script i can load in my browser that can loop count seconds count how many times looped open tabs close tabs and... i... suc...
Summary: Hi Thanks for the follow up.As told by you I posted my query in expert-excahge.com.It is in the programmin section titled as c++ or perl help.I alloted 500 points for the question.I hope there is some...