View Full Version : login & Redirect Script
joetuv
05-08-2005, 12:35 AM
Hello All,
Please Help!
I need a login & redirect asp script.
Basically, I have an access database with 2 fields ( members_Id & Url). I need a script that can redirect the user to the specific URL.
Example: On a login page a user enters it's ID and then the script will redirect that user to the URL provided for that user in the database.
I'm new to asp so it will be a big help if someone can show me how to do this.
Thanks in advance.
MetalStorm
05-08-2005, 08:08 PM
You should check out http://www.learnasp.com/learnasp/ and http://www.w3schools.com/
Bullschmidt
05-10-2005, 10:11 PM
Example: On a login page a user enters it's ID and then the script will redirect that user to the URL provided for that user in the database.
I'm new to asp so it will be a big help if someone can show me how to do this.
Usually how it's done with dynamic sites it that there ARE NO user-specific pages. So for example after a login a user might see a main menu page perhaps with his name at the top and all the areas that user is allowed to go to. But the page itself is just the same page that ALL the users go to. The only difference is that the page only shows data pertinent to the logged in user...
joetuv
05-10-2005, 11:33 PM
Thanks for the advise Bullschmidt. But what I need is to re-direct users to a totally different website after login.
MetalStorm
05-10-2005, 11:49 PM
To do that you would need to know how to send and recieve form data and how to query a database.
To redirect someone you simply do: Response.redirect "http://www.google.com/" for example.
You'll need to learn a bit more ASP to do this. Check out the URLs I've posted above.
Bullschmidt
05-11-2005, 05:17 AM
Thanks for the advise Bullschmidt. But what I need is to re-direct users to a totally different website after login.
Just have a field in the user table called Url as you do and on the login page obtain the value for that field and perhaps do something like this:
Url = objRS("Url")
Response.Redirect Url
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.