http://www.php-intro.com/assn/res-profile/spec/index.php how would the edit.php
ID: 3763260 • Letter: H
Question
http://www.php-intro.com/assn/res-profile/spec/index.php
how would the edit.php and delete.php be approached? use POST, get, step by step code on how acheived would be appreciated.
edit.php edit an exsiting entry in the database. Make sure the user is logged in, that the entry actually exists, and that the current logged in user owns the entry in the database. (update)
delete.php delete an entry from the database. Do not do the delete in a GET - you must put up a verification screen and do the actual delete in a POST request, after which you redirect back to index.php wih a success message. Before you do the delete, make sure the user is logged in, that the entry actually exists, and that the current logged in user owns the entry in the database. (delete) I have this so far but its giving me errors $delete = $_POST["delete"];
Explanation / Answer
the use of edit.php->
delete.php:
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.