Swapitshop Forum

Username:    Password:      Log me on automatically each visit    

 
Password

 
Post new topic   Reply to topic    SwapitShop Forum Forum Index : Web Design & Development
View previous topic :: View next topic  
Author Message

Adam1993
Moderator
Moderator

Posts: 3953
Forum Points: 14754
Transfer Points

› Items


› Portfolio

Comments: Add |  Show

PostPosted: Tue Sep 04, 2007 5:17 pm    Post subject: Password Reply with quote

Whats the HTML coding for a password prompt on a page?

Thanks In Advance,
Adam
Back to top
 View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Report Post

.Jordan.
Forum Mad
Forum Mad

Posts: 6437
Forum Points: 1501
Transfer Points

› Items


› Portfolio

Comments: Add |  Show

PostPosted: Tue Sep 04, 2007 7:27 pm    Post subject: Reply with quote

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
 View user's profile Send private message MSN Messenger Report Post

jimi
Forum Maniac
Forum Maniac

Posts: 2513
Transfer Points

› Items


› Portfolio

Comments: Add |  Show

PostPosted: Tue Sep 04, 2007 8:21 pm    Post subject: Reply with quote

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
 View user's profile Send private message Report Post
Display posts from previous:   
Post new topic   Reply to topic    SwapitShop Forum Forum Index : Web Design & Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum