I have a PHP page which I can add/edit/delete entries in a database, via a form. Depending on if is an edit or new entry, there are different buttons available (i.e.: delete, update, add).
In the form, I am using the $_SERVER['PHP_SELF'] for the form's action. I can add a new entry from scratch or update and amended an entry without trouble. But when I either try to delete an entry outright or publish an existing entry (move it from one table to another and delete entry from temporary table), I get the forbidden message: "You don't have permission to access /finish_blog.php on this server."
My web host offers ControlMaestro and I am not fluent in chmod settings. From the control panel, my permissions are:
Yes, blog_finish.php is the same page. I have included the PHP above the HTML.
Under the ControlMaestro's info panel, this is what is shown
Development Tools
OpenSSH Secure Shell
Telnet
(all have green checkmarks).
I am not sure if it matters, but this is a subdomain. Each page in the sub requires a valid session. I tried the page w/o the session validation, but I still got the 403.
Originally this page worked. Suddenly the functions with "delete" stopped working. Although once, the entry was deleted but not transfered to the other table.
Bookmarks