Re: Multiple Submit
| From: | Dan Shirah | Date: | Mon, 26 Feb 2007 18:47:35 +0000 |
| Subject: | Re: Multiple Submit | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-249468@lists.php.net to get a copy of this message | ||
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 to populate all customer information if an order ID is entered. Problem: I cannot get the two to coincide at the same time. They both use the 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