Page 1 of 1
How do I get the name of a form on the next page?
Posted: Sun Dec 01, 2002 5:19 am
by Ford Prefect
I would like to know which form has send the request. Is it possible to get the name of the form?
<FORM name="form1" ...>
...
</FORM>
<FORM name="form2" ...>
...
</FORM>
Posted: Sun Dec 01, 2002 6:44 am
by volka
the form-element itself has no associated value but you may add a hidden field or assign values to the submit-buttons
Code: Select all
<form method=....>
<input type="hidden" name="source" value="form1" />
...
</form>
or
<form method=...>
...
<input type="submit" name="form" value="form1" />
</form>
Posted: Sun Dec 01, 2002 6:59 am
by Ford Prefect
Thanks, that works.