You are here: Getting form name « PHP « IT news, forums, messages
Getting form name

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация