No announcement yet.

Multple submit button option with POST method

  • Filter
  • Time
  • Show
Clear All
new posts

  • Multple submit button option with POST method

    Hi there..

    I am trying to implement a form and two subnit button(yea and no) using POST method. If I prss "yes" button it will open a new page yes.html and display whatever is selcted from the form. And for "no" button it will open no.html and display the selected contents. How to do that?

  • #2
    You could have the value for the yes to be yes and the one for no to be no. Have the action send to some script, for example php or javascript and simiply take that posted variable (submit) and check if it said yes or no. You could then have it either redirect to one of those pages. Alternatively you could muck around with the onclick elements in javascript


    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.