password protect problem

knightbanner

New Member
Hey, I have Dreamweaver CS4, and I've been working with html for a while, but i don't have any experience with PHP. I have a server that is enabled with PHP and his hosting my website (http://gawg.cap.gov/GA065/). Here's my problem: I need to password protect a form. I then need the data entered in the form to be displayed on a third page.

I've tried online PHP tutorials and I'm completely lost. Can someone walk me through how to do this, or tell where I can find a good tutorial on PHP?

Jay
 

che09

New Member
start small, and work your way up. don't try to do what you need until you have learned the basics and understand what you are doing, otherwise your website will end up with problems. try this.

http://us2.php.net/tut.php



Well said!! Understanding the basics is the first thing to do. As you've said you're a fast learner then I think it will be easy for you!!


You can try this link or this link

Good Luck!
 

projectfizz

New Member
From answering your question directly it sounds like you have a form and you want to grab the data on submission. So to grab the password you'd grab the post value and then to store in your database use the sha1 PHP function, I recommend also using an encryption key to help with the protection of the password.
 

jacky001

New Member
I'm trying to use your password protect script on an SMF forum... go here and see the error I'm getting:

http://www.habitathrm.com/forum/index.php

Here is the error text:

Warning: main(/pass/password_protect.php) [function.main]: failed to open stream: No such file or directory in /var/www/humanity/forum/index.php on line 1

Warning: main() [function.include]: Failed opening '/pass/password_protect.php' for inclusion (include_path='.:') in /var/www/humanity/forum/index.php on line 1
 
Top