![]() |
How to display a popup window on success of form submit - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How to display a popup window on success of form submit (/showthread.php?tid=46386) |
How to display a popup window on success of form submit - El Forum - 10-30-2011 [eluser]Cgull[/eluser] Hello, I have an order form that submits data to the database. If the form validation is successful, I want to pop up a window that displays the order details for user confirmation before submitting the data to the database. I have this function in my processOrder controller: Code: function process() And this jquery code in my header_view: Code: $("#orderForm").validate({ So in the controller if the validation is successful, I want to pop a window with the order details for the user to confirm. If he confirms, I will submit the data to the database, otherwise, will go back to the order form. Is that possible with codeigniter? If so, how do I do that? Thank you, Sigal |