Aeden Jameson wrote:
Is it possible to retrieve the value of the name attribute of a form
through $_POST, or some other variable, from script the handles
submission?
Cheers,
Aeden
IIRC no, there is no way directly, since that is not submitted.
You would get much better answers if you really asked the _real
question_. What is it that you are trying to do ?
I'll throw a wild guess: You have several different forms on a single
page that all submit to the same .php file through POST, and you want to
know which form was used.
One way would be to use GET with POST to determine the used form:
<form name="form1" method="post" action="myscript.php?from=form1">
and for the second form:
<form name="form1" method="post" action="myscript.php?from=form2">
This way you can differentiate between the forms in the handling script
using $_GET["from"];
Another way of doing the same is by adding a hidden form field to each
form:
<input type="hidden" name="from" value="form1">
and
<input type="hidden" name="from" value="form1">
If it is something else you are trying to do, please let us know.
HTH
--
Suni