Posted by nettleby@googlemail.com on 04/17/06 18:18
Jonathan N. Little wrote:
>
> <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:
>
> do_this="Do One Thing"
>
> or with the second
>
> do_that="Do Something Else"
>
Hi, Thanks for the reply.
I understand that if I used unique name/value combinations to identify
the buttons then it will work as you've described. What I was
interested in is if a default submit button doesn't have a name defined
at all, then wouldn't you still be able to differentiate at the server
end between that and another (e.g. reset) button if that did have a
name defined. I figured that the submit button wouldn't pass any data
from the button, but the reset button would, if pressed.
Thanks,
Debbie
[Back to original message]
|