|Welcome to the Monastery|
CGI and Databaseby mccolgst (Initiate)
|on Feb 09, 2009 at 03:14 UTC||Need Help??|
mccolgst has asked for the
wisdom of the Perl Monks concerning the following question:
I have a test website set up such that a user can enter data about a homework assignment, and then it gets added to my mySQL database.
From there, on a separate html page that calls a perl script, the assignments in the homework table are displayed in an (html) table to the user.
After each displayed record, I have it output a link called "Delete" from which I want to be able to delete that record from the database, my problem is, how do I specify to my script that I want to delete that specific record? I thought to send the parameters through the browser url, but I haven't had much luck finding resources on it.
a href="delete.pl?name=$name_id"> Delete
I was thinking of using something like this, but Im not really sure how to set it up, any ideas?