Posted by J Kensler on 10/04/30 11:11
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>";
?>
Navigation:
[Reply to this message]
|