How to load response from controller inside a div instead of a separate webpage |
So I am validating a form using code igniter which simplifies my code a lot however I am facing a new problem. My form at first gets loaded as a pop up inside a div of view. But when the controller returns response after validation then the form opens as a separate webpage instead of just loading inside the previous div of view.
main_view.php Code: <script> Controller: Code: public function add_user() Form-> (add_user.php) Code: <div id="popupContact"> how can I load the form inside the main_view.php after the validation fails from the controller or when the validation is successful, I want the form to close inside the main view page. I can do form validation using normal javascript and php but wanted to learn code igniter method of validation. Urgently need help, Please. |
Messages In This Thread |
How to load response from controller inside a div instead of a separate webpage - by pinakdas163 - 01-25-2017, 04:08 PM
RE: How to load response from controller inside a div instead of a separate webpage - by PaulD - 01-25-2017, 04:49 PM
RE: How to load response from controller inside a div instead of a separate webpage - by pinakdas163 - 01-25-2017, 05:09 PM
|