2 submit buttons in one form

Results 1 to 2 of 2

Thread: 2 submit buttons in one form

  1. #1
    Jostein Guest

    Default 2 submit buttons in one form

    How do I controll which button is clicked when there are two buttons in the same form, and in my sample one button is for view and one for delete. How can i seperate there events in the validation file??

  2. #2
    Join Date
    Dec 1969

    Default RE: 2 submit buttons in one form

    Give them the same name... eg:<BR><BR>&#060;input type="submit" value="New" name="submit_button"&#062;<BR>&#060;input type="submit" value="Delete" name="submit_button"&#062;<BR><BR>You can then Request the value posted to work out which one was pressed, eg:<BR><BR>If Request("submit_button") = "New" Then<BR><BR>ElseIf Request("submit_button") = "Delete" Then<BR><BR>End If<BR><BR>Chris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts