Web Design Forum  
 
Go Back   Web Design Forum > Web Software > Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 12-10-2009, 12:50 AM   #1
New Member
 
Join Date: Dec 2009
Posts: 1
Exclamation password protect problem

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
knightbanner is offline   Reply With Quote


Old 01-16-2011, 06:57 PM   #2
New Member
 
Join Date: Jan 2011
Posts: 11
Default

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
dqhendricks is offline   Reply With Quote
Old 01-17-2011, 09:26 PM   #3
Gold Member
 
Join Date: Nov 2010
Posts: 324
Default

Quote:
Originally Posted by dqhendricks View Post
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!
__________________
FTP hosting
che09 is offline   Reply With Quote
Old 01-21-2011, 07:40 PM   #4
New Member
 
Join Date: Jan 2011
Posts: 4
Default

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.
__________________
Project Fizz - A new freelancing job portal
Putting the motivation back into freelancing
http://www.projectfizz.com
projectfizz is offline   Reply With Quote
Old 06-07-2011, 11:51 AM   #5
New Member
 
Join Date: Jun 2011
Posts: 5
Default

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
__________________
seo training in ahmedabad
jacky001 is offline   Reply With Quote


Reply

Tags
data, form, password protected, php, tutorial

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:04 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.