Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to retrieve the form name after submitting??

Status
Not open for further replies.

jaysan

MIS
Dec 5, 2002
1
PH
<br>&nbsp;I am able to retrieve the field values in the form. But how to retrieve the form name itself after submitting??
 
The easiest way would be to use JavaScript to put the form name into a hidden field.<br><FONT FACE=monospace><br>&lt;form name=&quot;t_form&quot; onSubmit=&quot;javascript:document.t_form.formname.value = document.t_form.name&quot;&gt;<br><br>&lt;input type=&quot;hidden&quot; name=&quot;formname&quot;&gt;<br></font><br>On the PHP side the form name is now $formname.<br><br>Hope it helped.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top