in reply to Re^2: JavaScript and form submission
in thread JavaScript and form submission

If you can use Javascript, just set the value of the hidden field accordingly. If you're supporting non-Javascript too, make the "cancel" link a GET request instead of a button.

Replies are listed 'Best First'.
Re^4: JavaScript and form submission
by dorward (Curate) on Nov 22, 2006 at 13:20 UTC

    if you can use JavaScript

    It is more important if your users can use JS. Since you usually don't know, systems should be designed so they are still functional if JS isn't available.