![]() |
|
#1
|
|||
|
|||
3 submit buttons 3 different destinationshey friends.... i need some help... i want to create one form... in which i want to have three submit buttons. and the difficulty is these different buttons has different destinations....
means multiple actions in a form....... and restriction is i must use only HTML coding. no JAVASCRIPT |
|||
|
#2
|
||||
|
||||
Re: 3 submit buttons 3 different destinationsGive the three submit buttons the same name but different values.
HTML Code:
PHP Code:
|
|
#3
|
|||
|
|||
Re: 3 submit buttons 3 different destinationsthanks for answer "MisterChucker ".
but if i want to use only Simple HTML then is it possible... |
|
#4
|
||||
|
||||
Re: 3 submit buttons 3 different destinationsForms were designed to be submitted to a single processing agent, which is designated by a single URL in the form's action attribute.
W3C: Form Submission To cause the form to choose among multiple processing agents, a language capable of making decisions must be used in addition to HTML. The language can either be a client-side scripting language like Javascript or a server-side language like PHP. If you want to use a client-side script, change the form action when a submit button is pressed but before the form is submitted. If you want to use a server-side script, have the server figure out which submit button was pressed and include the appropriate processing page. |
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The