I have a main.php page with multiple divs. I load whole pages in these divs using AJAX. Some of these pages have forms with submit buttons. The structure of the pages is like so:
For acc_settings.php
<form enctype="multipart/form-data" method="post" action="acc_settings.php" >
.
.
<button type='submit' name='update' >UPDATE</button>
</form>
So the form is processed by acc_settings.php itself. When the submit button is pressed, the form info is sent to acc_settings but the browser loads up acc_settings.php
What I want is that the form should remain the way it is but the response should be displayed in the same div in main.php and acc_settings.php should not be opened by the browser.
There might be an AJAX solution to this.