| View previous topic :: View next topic |
|
| Author |
Message |
|
Adam1993 The Cool Admin :)

Posts: 4798 I Feel...: Stuck Feedback: (0) % Postive Forum Points: 18108
Transfer Points
› Virtual Items:


Add Karma Rated By 41 Members
Comments: Add |
Show
|
Posted: Tue Sep 04, 2007 6:17 pm Post subject: Password |
|
|
Whats the HTML coding for a password prompt on a page?
Thanks In Advance,
Adam
|
|
| Back to top |
|
 |
|
.Jordan. Forum Celebrity

Posts: 6445 I Feel...: Nothing Feedback: (0) % Postive Forum Points: 1716
Transfer Points
› Virtual Items:
Add Karma Rated By 0 Members
Comments: Add |
Show
|
Posted: Tue Sep 04, 2007 8:27 pm Post subject: |
|
|
Its javascript, but it works;
| Code: | | <HEAD><SCRIPT language="JavaScript"><!--hidevar password;var pass1="PASSWORD GOES HERE";password=prompt('TEXT ON P-UP',' ');if (password==pass1)alert('TEXT IF CORRECT');else { window.location="URL OF PAGE THAT IT GOES TO IF THEY ANSWERED WRONG"; }//--></SCRIPT></HEAD> |
|
|
| Back to top |
|
 |
|
jimi Forum Wrecker
Posts: 2513 Feedback: % Postive (0) Forum Points: 0
Transfer Points
› Virtual Items:
Add Karma Rated By 0 Members
Comments: Add |
Show
|
Posted: Tue Sep 04, 2007 9:21 pm Post subject: |
|
|
| i wouldnt use it to secure anything theres a thousand and 1 ways to get round that try using php or htacess/htpassword if you have acess to ftp
|
|
| Back to top |
|
 |
|