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?
Job Search Database
Moderator: General Moderators
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.
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:
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.