Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 





Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read

Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
Thread Tools
Old 06-17-2008, 08:22 AM   #1 (permalink)
Registered User
 
Join Date: Jun 2008
Posts: 8
OS: Windows XP


PHP user system with pending verification

Hi All

I’m wanting to create a system where a user can log in, fill in some information in some forms an submit it, sending an email to the IT manager saying the information has been sent to the database

From here a IT manager should be able to log in and see this information as a pending request.

The IT manager should then be able to click a check box verifying the information has been received; the data should then be copied into a new table called completed information with a date stamp.

An email should then be sent to the user saying the information has been received

If anyone knows of any PHP code or a similar system that i may be able to use that would be great

Cheers

Steve
stephenf33 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-17-2008, 10:49 AM   #2 (permalink)
Design Team Member
 
Redcore's Avatar
 
Join Date: Aug 2007
Location: Jamestown, CA
Posts: 493
OS: WinXP

My System

Send a message via AIM to Redcore Send a message via MSN to Redcore Send a message via Yahoo to Redcore
Re: PHP user system with pending verification

This may get you pointed in the right direction:
http://www.evolt.org/PHP-Login-Syste...Admin-Features

I'm always here to help, but I never just do things like this for people because nobody learns anything when it's done for them :P Once you get as far as you can get and need help, let me know (remember to post your code here)
__________________
Free Resources
PC Protection - Comodo Firewall | AVG Anti-Virus | WinPatrol | Ad-Aware | Spybot S&D | SpywareBlaster |
Web Design/Programming - KompoZer
(Editor) | Paint.NET (Graphic) | GIMP+GIMPShop (Graphic) | FileZilla (FTP Client) | Free Hosting |
Redcore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-25-2008, 01:43 AM   #3 (permalink)
Registered User
 
Join Date: Jun 2008
Posts: 8
OS: Windows XP


Re: PHP user system with pending verification

Hi Redcore

I've used that tutorial before many times, but it didnt really help me get the info i needed. Do you have any other ideas? like you said its best to learn how to do it but it would be helpful to get an example to work from, as i have only just begun writing PHP

Cheers

Steve
stephenf33 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-26-2008, 12:16 PM   #4 (permalink)
Design Team Member
 
Redcore's Avatar
 
Join Date: Aug 2007
Location: Jamestown, CA
Posts: 493
OS: WinXP

My System

Send a message via AIM to Redcore Send a message via MSN to Redcore Send a message via Yahoo to Redcore
Re: PHP user system with pending verification

Yeah, I just wanted you to study that code moreso and take direction from it - I personally think it's a bit overblown and over complicated.

How much PHP do you know? If you understand cookies and how to add/modify data in a database, you're well on your way.
__________________
Free Resources
PC Protection - Comodo Firewall | AVG Anti-Virus | WinPatrol | Ad-Aware | Spybot S&D | SpywareBlaster |
Web Design/Programming - KompoZer
(Editor) | Paint.NET (Graphic) | GIMP+GIMPShop (Graphic) | FileZilla (FTP Client) | Free Hosting |
Redcore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-27-2008, 03:14 AM   #5 (permalink)
Registered User
 
Join Date: Jun 2008
Posts: 8
OS: Windows XP


Re: PHP user system with pending verification

I'm only just starting out to writing anything at the moment, i have very little experience with PHP, i have a few books so i'm going through them. I understand how to add/modify data in the database but i'm not really sure about cookies.
stephenf33 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 06-27-2008, 02:31 PM   #6 (permalink)
Design Team Member
 
Redcore's Avatar
 
Join Date: Aug 2007
Location: Jamestown, CA
Posts: 493
OS: WinXP

My System

Send a message via AIM to Redcore Send a message via MSN to Redcore Send a message via Yahoo to Redcore
Re: PHP user system with pending verification

Cookies are really easy. Just think of it like wrist tags. Someone walks into your store (web site) and says "I'm Bob, my password is 39009308" - you check that it verifies and when it does, you give them a wrist tag that says "Bob" and their password. Whenever they roam around and want to access sensitive data, you check that wristband and make sure that the username/password combination check out. If not, you kick them out of the store :)

Applying a cookie is very easy...

PHP Code:
$encrypted_password "5f4dcc3b5aa765d61d8327deb882cf99";
$username "stephenf33";
$timeout time() + 3600// 1 hour

setcookie("ursite_password"$encrypted_password$timeout"/""stephenf33.com"0); //
setcookie("ursite_username"$username$timeout"/""stephenf33.com"0); 
Then to reference or check those cookies you'd just do this...

PHP Code:
if(!isset($_COOKIE['ursite_username'])){
echo 
"You are not logged in. <a href='login.php'>Click here to login</a>.</div>";
die();

You can also verify that the stored username matches the stored password via a quick database check. :) It's pretty basic stuff, but can get really complicated if you wanted to.
__________________
Free Resources
PC Protection - Comodo Firewall | AVG Anti-Virus | WinPatrol | Ad-Aware | Spybot S&D | SpywareBlaster |
Web Design/Programming - KompoZer
(Editor) | Paint.NET (Graphic) | GIMP+GIMPShop (Graphic) | FileZilla (FTP Client) | Free Hosting |
Redcore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Reply


Thread Tools

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

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



All times are GMT -7. The time now is 03:44 PM.



Copyright 2001 - 2008, Tech Support Forum

Search Engine Friendly URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82