|
there would only be one submit button at the end of the form
My approach to something like this is to have seperate buttons at the end of or at the top of the form (or both) and then have server side logic to decide which was pressed.
So there is one button labeled "Accept" and one labeled "Delete", all are named submit.
in Pseudocode
if post['submit'] == "Accept"
run code to accept selected
end if
if post['submit'] == "Delete"
run code to delete selected
end if
If you need edit capabilities, say for user management, then another submit button could be added for "Edit", only this one would need to be disabled on multiple selections, And then
if post['submit'] == "Edit"
run code to edit the selected record
end if
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|