![]() |
|
|
Welcome to the { mindfrost82.com } forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Can I have 02 submit buttons at same form ?
Hi webmates:
I'd like to know how to achieve this: I have a form, and I need it also to have 02 submit buttons, in such a way that if I click on one of them it takes me to the url "abc.php" , and if I click the 2nd button, it takes me to the url "xyz.php"... I also need these two buttons to have a customized image. Is it possible ? Thanks in advance... |
|
|||
|
Re: Can I have 02 submit buttons at same form ?
On 05 Aug 2008 in macromedia.dreamweaver, Sw Jiten wrote:
> I'd like to know how to achieve this: I have a form, and I need it > also to have 02 submit buttons, in such a way that if I click on one > of them it takes me to the url "abc.php" , and if I click the 2nd > button, it takes me to the url "xyz.php"... I also need these two > buttons to have a customized image. Is it possible ? No. If there is no other action than to go to the page, just use two forms, one having the action abc.php and the other xyz.php. If the two buttons use the same form fields to submit the same information, you'll need to submit to a third script, say mno.php, which decides whether the final destinaton is abc.php or mno.php. -- Joe Makowiec http://makowiec.net/ Email: http://makowiec.net/contact.php |
|
|||
|
Re: Can I have 02 submit buttons at same form ?
understood... but again the same situation: because... how do I manage to
submit all the fields data to this third mno.php file ? (note that I need to submit in any case, with bith buttons, and also I need to submit a parameter which will help me to recognize what button has been clicked, and so decide where to go) any idea... ? thanks ! |
|
|||
|
Re: Can I have 02 submit buttons at same form ?
..oO(Murray *ACE*)
>You can have multiple submit buttons and a form that submits to a single >page. Make that single page process the form's data in different ways, >depending on which submit button was selected. > >Do this by using an onclick event on each submit button that sets the value >of a hidden field. Use the value in that hidden field to determine how to >process the form. No JS required (what would happen without JS?). Just check which button appears in the POST data. Micha |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|