blueboy
(regular)
Mon May 10 2004 08:44 PM
dummy password page on d/weaver

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 :)


blueboy
(regular)
Mon May 10 2004 09:53 PM
Re: dummy password page on d/weaver

Problem resolved!



paddy
(regular)
Tue May 11 2004 08:39 AM
Re: dummy password page on d/weaver

care to share the answer?


IG88
(regular)
Tue May 11 2004 11:13 AM
Re: dummy password page on d/weaver

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).



Contact Us | Privacy statement Main website
Hitwise Top 10 Award Winner - Jan-Mar 2005

About us | Contact us | Link to us | Terms & Conditions | Privacy Policy
© Copyright IPC Media Limited, All rights reserved