[PHP] Get form name after submission

2004-03-18 Thread Jonathan Villa
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

Re: [PHP] Get form name after submission

2004-03-18 Thread Richard Davey
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

Re: [PHP] Get form name after submission

2004-03-18 Thread Robert Cummings
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. --

Re: [PHP] Get form name after submission

2004-03-18 Thread John W. Holmes
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

Re: [PHP] Get form name after submission

2004-03-18 Thread Roger Spears
You assign it to a hidden field in your form input type=hidden name=formName value=actualFormName 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

Re: [PHP] Get form name after submission

2004-03-18 Thread trlists
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

Re: [PHP] Get form name after submission

2004-03-18 Thread Jonathan Villa
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