View Full Version : fprm name and id

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

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

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

06-11-2007, 06: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.