Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Password Protection


Password Protection

Reply
  #1 (permalink)  
Old 09-27-04, 07:43 AM
codejunkie codejunkie is offline
New Member
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Password Protection

I'm looking to add a password input field on part of my website, but instead of having seperate user id's and passwords, i want a question that only my friends would know, and when you enter the right answer and click submit it carries you to the page. When you enter the wrong answer you get an error page or something. I know the code for the password field <input type=password> and then <input type=submit>, but i dont know how to do the rest. I believe its CGI I need to go along with it, but I'm not sure.

Thanks,
Rob
Reply With Quote
  #2 (permalink)  
Old 10-01-04, 06:30 PM
iddx's Avatar
iddx iddx is offline
Newbie Coder
 
Join Date: Aug 2004
Location: California
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
when you set up your forms in html they look real neat but you still need to tell the server what to do with them. TO do this you have to put something either in the action attribute or in the onSubmit attribute.

<form method="post" action="http://pub11.bravenet.com/emailfwd/senddata.php" onSubmit="return checkrequired(this)">

in that example the action attribute sens my form off to a free form processor from bravenet.com and the onsubmit runs a javascript check to see if all the required forms are filled out. There are a lot of free java script password generators, but they aren't nearly as secure as server side scripting languages like php perl or other cgi options. Google is good place to start. or if your feeling lazy try this link http://javascriptkit.com/script/cutindex6.shtml
Reply With Quote
  #3 (permalink)  
Old 10-01-04, 10:10 PM
4n7hr4x 4n7hr4x is offline
Banned
 
Join Date: Jun 2004
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
the code is php, thats what i would use, and either mysql, or just set the answer variable on the page u are supposed to be logged in on, PM me i will make it for u
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need To Password Protect a Page For Multi-Users cebuy PHP 8 09-09-04 07:57 AM
need help with username password of os traceMe ASP 0 08-23-04 03:19 AM
password validation <?Wille?> PHP 3 08-18-04 03:04 PM
password textbox mpriest HTML/XHTML/XML 14 07-07-04 09:56 AM
Quick Question for you php guru's Tokahashi PHP 3 04-09-04 12:00 PM


All times are GMT -5. The time now is 10:18 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.