Posted by Alan J. Flavell on 04/17/06 18:16
On Mon, 17 Apr 2006, Jonathan N. Little wrote:
> If you have more than one submit button if you [g]ive them different
> names then your receiving script can "see" which button was
> activated and process accordingly
>
> <input type="submit" value="Do One Thing" name="do_this">
> <input type="submit" value="Do Something Else" name="do_that">
>
> so if the 1st submit button was click the receiving script would see
> this key value pair:
Right; but in real life it's more complicated than that, because there
are situations where forms get submitted without the user activating
any of the submit buttons, and the server side process needs to be
ready to cope with that.
Might I suggest my own page on the topic? Although I admit it hasn't
been extensively updated recently, I think it's still fairly close to
reality: http://ppewww.ph.gla.ac.uk/~flavell/www/trysub.html
regards
[Back to original message]
|