Sys, GE Interlogix)
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] multiple FORMS on same page problem.
Golawala, Moiz M (IndSys, GE Interlogix) wrote:
> It is almost working.. I can't figure out why I can get the "someVal" to page5.php.
>
> file: page4.php
>
>
Golawala, Moiz M (IndSys, GE Interlogix) wrote:
It is almost working.. I can't figure out why I can get the "someVal" to page5.php.
file: page4.php
if (isset($_REQUEST['submit1'])){
echo "button 1 was clicked, act accordingly";
echo "this the request values";
echo $_REQUEST['someVal'];
}els
-Original Message-
From: CPT John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 4:36 PM
To: Golawala, Moiz M (IndSys, GE Interlogix); [EMAIL PROTECTED]
Subject: Re: [PHP] multiple FORMS on same page problem.
You can only use one form, as you've figured out. You
--- "Golawala, Moiz M (IndSys, GE Interlogix)" <[EMAIL PROTECTED]> wrote:
> I am creating a page with 2 buttons.
...
>
>
>
>
>
>
>
>
...
> I would like to see the variable 'someVal' in the $_POST of both
> "page4 Submit" button and "page5 Submit" button.
Then put so
You can only use one form, as you've figured out. You can have PHP determine
the action for each button, though..
In a form with two buttons, say names "submit1" and "submit2", only one
variable will be set when the form is submitted, the actual button that was
clicked. So you can use logic like t
I don't know of any rule that says you cannot have two submit button in the same form.
Of course, if you need to know which was clicked, you will either need to name them
differently or detect their values in your form processing routine. If the button is
clicked that should take you to another
6 matches
Mail list logo