i've read various threads discussing how make two or more submit buttons in a form redirect to different pages or execute different tasks. but i just haven't managed to apply these result to my problem.
i have a list showing the varius project i'm managing. it's really basic, theres only the projects names and for each project a "delete" and an "edit" button:
if i click "delete", the website should refresh itsel ($PHP_SELF)f and run the SQL to delete the chosen project from the database.
if i click "edit", i want to pass the project_id on to a new page, where, you guessed it, i can edit all project details (name, description, assign images and movies).
both parts work perfectly when solo, but not when i try to but them together. the solutions i come up with allways only fit one way, and excludes the other.
i was expecting to be able to grab the button-values and then switch() to the corrensponding task, but just havent been able to come up with the right code.
oh yes, a solution without java-script is strongly favored.
anyone of you code-ninjas got a hint?
thanks.