Posted by richard on 09/21/06 04:09
"Tony WONG" <x34@hknet.com> wrote in message
news:eer2qh$fmh$1@nnews.pacific.net.hk...
> can i have 2 actions in a html form by 2 different submit buttons? Thanks
> a lot.
>
> tony
As is readily done on many sites for numerous reasons.
Each button has a name, and hence, each action within the script refers to
that name, defining what each button will do.
Much like defining how each division will behave on a webpage with an ID or
class name and corresponding styles.
You might have 3 buttons and each button performs a different search.
The real trick with multiple buttons, is what happens when the user presses
enter instead.
[Back to original message]
|