This is a discussion on "Security using forms" within the Classic ASP section. This forum, and the thread "Security using forms are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Security using forms
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Security using forms
Hi Im new to ASP so please bare with me. I have a website and on that website i would like a username and password setup. now depending on the username and password put in it needs to be redirected to a different iis server page. i.e if you put in the username. testuser it would pass you to http://servername/testuser.
Does anyone have any ideas of where i can start looking? Like i said i am new to ASP so this probably seems quite simple to someone but not to me....Yet! Many thanks, Thegarrett |
|
|
|
||||
|
Re: Security using forms
I just now found this thread... sorry it took so long to reply... but yes this can be done quite easily...
What you need to do is create a database that has 3 fields. 1) Username 2) Password 3) Url Then when the user logs in it checks if Username = (any username in the database) then see if the password matches the field where username (in database) is = to username (on form). Then you need to include something that will send the url to the browser depending on success... Let's say you got the username and password and they passed. So we set variable success = 1. If it didn't we set variable success = 0. Lets also say that you set your recordset query = rsquery here's some code below to do the browser.
Last Blog Entry: Happy Holidays - A Non Offensive way to say Merry Christmas? WRONG! (Dec 11th, 2007)
Last edited by JustinStudios; Apr 13th, 2007 at 16:39. Reason: mistyped code tags |
![]() |
| Tags |
| asp, forms, security |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CMS Security | ChrisTheSoul | Web Page Design | 5 | Feb 21st, 2008 16:28 |
| php security | saltedm8 | PHP Forum | 22 | Sep 27th, 2007 09:22 |
| Help with security | wiggles | Website Planning | 16 | Apr 9th, 2007 22:28 |
| PHP forms/security | ktsirig | PHP Forum | 2 | Sep 26th, 2005 18:41 |