Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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: