I ended up using a hidden field to pass the value of the form.
Thanks for the replies.
On Thu, 2004-03-18 at 12:21, Robert Cummings wrote:
> On Thu, 2004-03-18 at 12:24, Jonathan Villa wrote:
> > Is there a way to get the name of the form once it's submitted
> >
> > like $_POST['form1'] or som
On 18 Mar 2004 Richard Davey wrote:
> Good question, but the answer is no - I don't believe you can. You
> could try passing the form name as a hidden form value? Or name your
> submit button accordingly?
I have done this with the Submit button but I find that the results
vary. If you click Sub
You assign it to a hidden field in your form
in your PHP:
$formName = $_POST['formName'];
of course, this would have to be accomplished BEFORE the form is
submitted. Not sure if that is what you are looking for or not...
HTH,
Roger
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
From: "Jonathan Villa" <[EMAIL PROTECTED]>
> Is there a way to get the name of the form once it's submitted
>
> like $_POST['form1'] or something.
No. You'd have to use javascript to set a variable upon submission and then
find that variable.
---John Holmes...
--
PHP General Mailing List (http
On Thu, 2004-03-18 at 12:24, Jonathan Villa wrote:
> Is there a way to get the name of the form once it's submitted
>
> like $_POST['form1'] or something.
Include a hidden field with the name of the form for it's value.
Cheers,
Rob.
--
.--
Hello Jonathan,
Thursday, March 18, 2004, 5:24:29 PM, you wrote:
JV> Is there a way to get the name of the form once it's submitted
JV> like $_POST['form1'] or something.
Good question, but the answer is no - I don't believe you can. You
could try passing the form name as a hidden form value? Or
Is there a way to get the name of the form once it's submitted
like $_POST['form1'] or something.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
7 matches
Mail list logo