Getting form name
| From: | j kensler | Date: | Tue, 22 Mar 2005 17:13:50 +0000 |
| Subject: | Getting form name | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-211308@lists.php.net to get a copy of this message | ||
I'm trying to get the name of a form. I tried the following code, but
I guess the data in $_POST only contains data on the form elements
that go inside the form tags, but not info from the form tag itself.
Any suggestions on how to get the form name?
<?
foreach ($_POST as $key=>$value) {
echo $key . "---" . $value . "<br>";
}
echo "<hr>";
echo "<form name=\"myForm\" action=\"test.php\"
method=\"POST\" value=\"AAA\">"$
echo "<input type=\"text\" name=\"textbox\">";
echo "<input name=\"mySubmit\" type=\"submit\">";
echo "</form>";
?>