I have two forms in my page and both are having ajax function on submitting the form. My problem is that when I click the submit button of first form then second form automatically starts loading its result and shows error.
What to do to solve this problem?
Here is the screenshot of the two forms:
Please ensure your isset $_POST variables on the resulting page(eg. post page/action page).
For example for first form name = form1 on the php must be
if (isset($_POST["form1"])){
//...
}
for second form name = form2 on the php must be
if (isset($_POST["form2"])){
//...
}
!!!!!!!!!!!!!!!!!!!!!! Only Use formaction="Your_URL" Attribut in Button !!!!!!!!!!!!!!!!
form_1
form_2
button_1 button_2
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.