Job Search Database

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
polosport6699
Forum Commoner
Posts: 35
Joined: Wed Jun 11, 2003 3:19 pm

Job Search Database

Post by polosport6699 »

On this page
http://www.amishmastercrafts.net/rand/index.php

I want to make a verification process for a upper level management to confirm or deny the job listing, what would I need to do to do this. I want to make a $cmd to have management login and click either post to database or deny posting...

Any help?
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

There's no quick reply - google around for some php login/authentication tutorials.

LOGIN
As a rough outline, you could have a separate login page which checks a name & password against a users table (store hashed passes in the db and hash the POST'd pass before comparing). A successful login could set a cookie (or you can use sessions) then redirect to your page.

AUTHENTICATION
Some IF steps in the page script would check if a cookie (or session) pass exists, and if it matches a value in the db. IF the user is authenticated as admin, display some admin options ELSE do not display.
Paddy
Forum Contributor
Posts: 244
Joined: Wed Jun 11, 2003 8:16 pm
Location: Hobart, Tas, Aussie
Contact:

Post by Paddy »

I couldn't get much from the site. But the way I would do it is have every job added be pending ie a 0 or 1 in a pending field. Then when admin enters the administration site it lists all the pending jobs with checkboxes. They check the ones they want to go into the db and the other ones get deleted. Probably a better way though.
Post Reply