Home   News  Product reviews  Website reviews  Forums   Competitions  Subscribe 


Web Building >> Web design & build
 |  Print Topic
Jump to first unread post. Pages: 1
blueboy
regular


Reg'd: Sun
Posts: 194
dummy password page on d/weaver
      #66663 - Mon May 10 2004 08:44 PM

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


Post Extras: Print Post   Remind Me!   Notify Moderator  
blueboy
regular


Reg'd: Sun
Posts: 194
Re: dummy password page on d/weaver [Re: blueboy]
      #66692 - Mon May 10 2004 09:53 PM

Problem resolved!



Post Extras: Print Post   Remind Me!   Notify Moderator  
paddy
regular


Reg'd: Sat
Posts: 479
Loc: Northants
Re: dummy password page on d/weaver [Re: blueboy]
      #66752 - Tue May 11 2004 08:39 AM

care to share the answer?


Post Extras: Print Post   Remind Me!   Notify Moderator  
IG88
regular


Reg'd: Wed
Posts: 99
Loc: London, UK
Re: dummy password page on d/weaver [Re: blueboy]
      #66785 - Tue May 11 2004 11:13 AM

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



Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1

Rate this topic

Jump to


Extra information
0 registered and 8 anonymous users are browsing this forum.

Moderator:  putasolutions, Joe_London, greysts, bricat, Nanook, Hello_There, John_McKenna, Mouse, TheFatControlleR 


Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      Mark-up is enabled

Rating:
Topic views: 165

Contact Us | Privacy statement Main website