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?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.