Button value

Results 1 to 3 of 3

Thread: Button value

  1. #1
    Join Date
    Dec 1969

    Default Button value

    Is it possible to use Request.form to get the value of a button? I have a form with 3 Submit buttons (type Button) that use Javascript onClick events for validation, upon which the form is Submitted. The text fields pass on their information just fine, but I want to do different things depending on which of the buttons was clicked (the buttons have the same name, different values).

  2. #2
    Join Date
    Dec 1969

    Default Not like that

    onformvalidation fill a hidden field with the value of the button<BR>then request that field.<BR>

  3. #3
    Join Date
    Dec 1969

    Default RE: Button value

    what i have done is in my java function take the value of the button then place it in a hidden field then i submit the form and in the action page i read the hidden field and redirect to where ever. there might be an easier way.

Posting Permissions

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