bindiya Posted December 11, 2010 Share Posted December 11, 2010 I have 2 different forms in my webpage.The problem is only the submit button of one form is getting active all time.how can i remove this Quote Link to comment Share on other sites More sharing options...
Adam Posted December 11, 2010 Share Posted December 11, 2010 Assign the submit buttons different names, then just check which is set: <input type="submit" name="form1_submit_button"> <input type="submit" name="form2_submit_button"> if (isset($_POST['form1_submit_button'])) { // process } elseif (isset($_POST['form2_submit_button'])) { // process } Quote Link to comment Share on other sites More sharing options...
Adam Posted December 11, 2010 Share Posted December 11, 2010 Just realised this is in the JS forum. How are you triggering the submit event? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.