|
|
|||||||
|
I'm working on a site for a college course and need to link a password entry page to another page, so that when the user enters their password (which can be any data at all) and clicks on login, it takes them to another page. Any advice would be appreciated :) |
||||||||
|
|
|||||||
|
Problem resolved! |
||||||||
|
|
|||||||
|
care to share the answer? |
||||||||
|
|
|||||||
|
Hey- try some javascript put this in your html: <script language= "javascript"> function pw() { var ask = prompt( "Enter your password", "Type it here" ) var pword = "PUT YOU PASSWORD HERE" if( ask==pword ) location.href = "URL IF CORRECT"; else location.href = "URL IF WRONG" } </script> now, in your body tag, put onload= "pw()" so it looks like this: <body onload= "pw()"> hope this helps, ig88 Edited by TheFatControlleR on 14/01/2005 01:54 (server time). |