[PHP] Multiple Submit

2007-02-26 Thread Dan Shirah
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

[PHP] multiple submit buttons

2001-08-29 Thread Justin French
Hi all, I noticed this chunk of code in a site the other day: My GUESS is that if i click the "Yes" button, I magically get $btn = "Yes" as a var is the receieving PHP script. I was just about to test this, when I realised that (from what I can tell) multiple submits are not supported by

Re: [PHP] Multiple Submit

2007-02-26 Thread Németh Zoltán
2007. 02. 26, hétfő keltezéssel 11.23-kor Dan Shirah ezt írta: > 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:

Re: [PHP] Multiple Submit

2007-02-26 Thread Jim Lucas
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

Re: [PHP] Multiple Submit

2007-02-26 Thread tedd
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 coinci

Re: [PHP] Multiple Submit

2007-02-26 Thread Dan Shirah
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

Re: [PHP] Multiple Submit

2007-02-26 Thread David Giragosian
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 <[EMAIL PROTECTED]> 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 "Retriev

Re: [PHP] Multiple Submit

2007-02-26 Thread Jim Lucas
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

Re: [PHP] Multiple Submit

2007-02-26 Thread Dan Shirah
Okay, I partially figured it out! YAY! I only needed to have one form object. ** Instead of putting an action in the form, leave it blankand then specify the forms action based on which button is clicked. ** And this will $_POST all your entered values as it should. Now all I have to fi

Re: [PHP] Multiple Submit

2007-02-26 Thread Jim Lucas
Dan Shirah wrote: Okay, I partially figured it out! YAY! I only needed to have one form object. ** Instead of putting an action in the form, leave it blankand then specify the forms action based on which button is clicked. ** And this will $_POST all your entered values as it should.

Re: [PHP] Multiple Submit

2007-02-27 Thread Richard Lynch
Once you submit the form, it's a done deal, and you're going to get a response back... Maybe you want some kind of AJAX-y thing somewhere? On Mon, February 26, 2007 10:23 am, Dan Shirah wrote: > Hello all, > > I have a page that has multiple submits on it. One submit is within > my > javascriptf

Re: [PHP] Multiple Submit

2007-02-27 Thread Richard Lynch
On Mon, February 26, 2007 1:14 pm, David Giragosian wrote: >> However, since I have a form within a form, it is giving me >> problems. You simply cannot nest one form inside another, if that's what you are doing... Don't do that. -- Some people have a "gift" link here. Know what I want? I want

Re: [PHP] Multiple SUBMIT Buttons and Default

2001-11-08 Thread Tom Rogers
Hi I use java script like this: function highlight() { document.options.continue.focus(); } Tom At 07:51 AM 9/11/01, Jason Caldwell wrote: >On some of my forms I have multiple Submit buttons; > >for example >Button1 = Cancel, and >Button2 = Continue > >Is there a way to make