Re: Getting form name
| From: | Richard Davey | Date: | Tue, 22 Mar 2005 17:19:20 +0000 |
| Subject: | Re: Getting form name | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-211309@lists.php.net to get a copy of this message | ||
Hello,
Tuesday, March 22, 2005, 5:13:50 PM, you wrote:
jk> I'm trying to get the name of a form. I tried the following code, but
jk> I guess the data in $_POST only contains data on the form elements
jk> that go inside the form tags, but not info from the form tag itself.
jk> Any suggestions on how to get the form name?
Stick a hidden input field in your form that contains the name of it.
You cannot extract it from any super-global, it's not passed in that
way.
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I do not fear computers. I fear the lack of them." - Isaac Asimov