well, the way to do it is to combine both of the scripts into 1.
Then what you do is to name your buttons e.g. delete and confirm and give them each a value, like 1
then, in the script simply do something like:
if ($delete){
do the delete thingy here
}
if ($confirm){
do the confirm thingy here
}
i tend to find that one script with two functions, if you like, is far easier to create and manage than two files
hope this helps
Darren