applejack
October 26th, 2005, 11:21 PM
I have a form with 2 buttons - edit and delete.
When the edit button is clicked, i want it to run through a validation sequence which is defined within validate(). It checks that 'existCat' (a select list) has something selected and then that something has been entered into 'newname' (a text field). This part works fine
When the delete button is clicked, I only want it to check if an item in the select list has been selected and to ignore the newname field being blank.
I've done some searching on the net, but I can't find anything that can tell me how to detect which button was pressed so that i can define what to do in each situation.
Any help would be appreciated.
When the edit button is clicked, i want it to run through a validation sequence which is defined within validate(). It checks that 'existCat' (a select list) has something selected and then that something has been entered into 'newname' (a text field). This part works fine
When the delete button is clicked, I only want it to check if an item in the select list has been selected and to ignore the newname field being blank.
I've done some searching on the net, but I can't find anything that can tell me how to detect which button was pressed so that i can define what to do in each situation.
Any help would be appreciated.