...

View Full Version : fprm name and id



prakash
06-11-2007, 05:53 AM
I have a form

<form name="jim" id="jim" .......... >
.........
</form>

How do I get either the name or id from the form in PHP ?

_Aerospace_Eng_
06-11-2007, 05:56 AM
Just use name="jim" id="jim" in the submit button then you can do something like

if(isset($_POST['jim'])) { //do something } If jim is posted to the server then you will know that the submitted form was jim. Keep things simple.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum