Click to See Complete Forum and Search --> : password and login


cfoust200
07-18-2003, 01:10 PM
I have a website that I wanted to add a password and login to and I was wondering how I would link it to the page that the user members are suppossed to have access to? My website was premade so the "Password" and "Login" are already there I just need to figure out how to link them to the one page that I want the users to see.

Chris

zachzach
09-15-2003, 03:33 PM
<script>
function loginTrue() {
window.location="membersarea.html"
}
function loginFalse() {
alert("Incorect password or username")
}
</script>

just call loginTrue when its right and LoginFaklse when somethings wrong

chao
zach

AdamGundry
09-15-2003, 03:59 PM
Don't use Javascript for any form of security. You need some kind of server-side language to handle the login - find out which language(s) you have available, and search or post a message in the appropriate forum.

Adam

PeOfEo
09-15-2003, 04:13 PM
Yes java script is not secure, one only has to view your source to find whats in the cookie or look to see what the pass is. Its just not safe at all. Plus you dont have the data base session, or a data base at all for that matter, it can make it a real pain in the butt. A server side language offers a lot more room to add on in the future. Please find out what server side language your host supports then run with it.