Jump to content

is there any way by which we can understand which submit button is clicked


bindiya

Recommended Posts

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
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.