Re: Multiple Submit
| From: | David Giragosian | Date: | Mon, 26 Feb 2007 19:14:26 +0000 |
| Subject: | Re: Multiple Submit | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-249469@lists.php.net to get a copy of this message | ||
I always use :
onClick=\"this.form.action='SomeOtherPage.php'; \"
inside the button tag.
Seems to work just fine.
David
On 2/26/07, Dan Shirah <mrsquash2@gmail.com> wrote:
When I click on "save" at the bottom, I want it to check my form and submit all the values. When I click on the "Retrieve" button I want it to submit my order number to another page, and also carry over the $_POST value of any field that may have had info entered into it. However, since I have a form within a form, it is giving me problems. On 2/26/07, tedd <tedd@sperling.com> wrote: At 11:23 AM -0500 2/26/07, Dan Shirah wrote:Hello all, I have a page that has multiple submits on it. One submit is within my javascriptfor form checking, the other submit is a button used topopulateall customer information if an order ID is entered. Problem: I cannot get the two to coincide at the same time. They bothusethe submit function to send the data to the same page instead of their unique individual pages.Nothing wrong with putting two forms on the same page and each with their own action and submit button. You can always add an attribute value (value=1) with each submit button so that you can determine later which page to redirect your attention. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com