Getting form name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>";
?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux