05 Jun, 2003
Javascript – two submit buttons – two seperate purposes
Posted by: Jennifer In: Bookmarks
Needed this for a script I'm working on where one button will be doing one thing, another will be deleting stuff. So I needed a button that had a "confirm" message before going ahead and deleting stuff – but both buttons needed to submit the form (I would check the VALUE of the submit button via php). This script shows how to tie a confirm message to one button.