Hi Gurus
Is there a way you can password protect a particular function/action on a page?
What I basically want to do is to have a page and if people click on a button that they are able to edit parts of it.
Obviously I do not want everyone to be able to edit parts of the page, so I would like to prompt for a password so that only
qualifying users can continue...
So, what I have is a PHP script that outputs nice html with a link "edit this page"
then if ($edit = true) .... the user is prompted for a password and if the password is correct, the rest of the PHP script is
executed, where it allows the user to change things (using a form).
Or - would you suggest to place it in a password protected folder and what sort of issues does this pose if I post data (using a
form) to this page in the password protected area?
TIA
- Nicolaas
Is there a way you can password protect a particular function/action on a page?
What I basically want to do is to have a page and if people click on a button that they are able to edit parts of it.
Obviously I do not want everyone to be able to edit parts of the page, so I would like to prompt for a password so that only
qualifying users can continue...
So, what I have is a PHP script that outputs nice html with a link "edit this page"
then if ($edit = true) .... the user is prompted for a password and if the password is correct, the rest of the PHP script is
executed, where it allows the user to change things (using a form).
Or - would you suggest to place it in a password protected folder and what sort of issues does this pose if I post data (using a
form) to this page in the password protected area?
TIA
- Nicolaas
Comment