Remove item from PHP with button from my site?
Posted on 2009-04-02
Hey. I have here an early version of my PHP-script. When it runs, it gives me a couple random items. Like this
I have worked alot on it the last couple days, but now I am struck and don't know how to continue. What I would like to do, is add a button (could be just the letter X) to each of the items, that when pressed will delete that file from the php file
In my mind it would probably look something like this:
foreach ($my_items as $my_item => $my_amount)
echo "X(if pressed:Delete $priority["$my_item"], delete $amount["$my_item"]) $my_item<br />";
How should I go about doing that? Thanks alot for your help! :D