OnClick or Onsubmit, perform query???
Posted on 2003-03-12
Is there a way to have a query performed only after the user has clicked on a button on the page?
My page displays a list output from the query, and the user can click checkboxes on this list and choose an action to perform on the items in the list (like "set status", etc). The complication is that it needs to show the results on the same page-- the query is the same, it's just that what is returned will be different. So what I'm looking for a way to run the update/insert query when the user clicks the button and then refresh the page.
I know the results can be sent back to the same page via a form, but I've not been able to send the checkbox selections along, and it seems that my above approach would be easier.
ps- I feel bad that I only have five points to award. I shot my wad on the last question...