Re: Getting form name
| From: | Simon Garner | Date: | Wed, 28 Feb 2001 09:54:22 +0000 |
| Subject: | Re: Getting form name | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41977@lists.php.net to get a copy of this message | ||
From: "Matt Williams" <matt@yewlands.com>
> Hi
>
> Is there a way I can get the name of the form that has been posted?
>
> Looking at the form vars I don't see a name var or such in there.
>
> TIA
>
> M@
The NAME attribute of the FORM element is intended for scripting purposes
only.
But you should be able to achieve the desired effect with a hidden INPUT
element:
<form name="someform" method="POST">
<input type="hidden" name="formname" value="someform">
</form>
Cheers
Simon Garner