passing submit button value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sva0008
    New Member
    • Apr 2008
    • 19

    passing submit button value

    I have a form with name DSform. i have two submit buttons with value "save all" and "save some "
    the action of the form is page2.asp.

    I am using this code in function

    document.DSform .submit();

    can anyone please help me know how can i pass the value of submit to next page using
    document.DSform .submit();.

    Thanks
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Use a hidden form field and set it before calling submit().

    Comment

    Working...