|
hello i use of php and jquery in my application i want when users submit success a form in page1 , forward form page1 to page2 and show a pop-up message(same this site) "success" and when they do not submit success , dont forward and just show pop-up message "error" how i can implement this process? thanks? |
|
First you need to implement an Ajax submit of your form that should return either the login is correct or not to page 1. Once you have the response, you can redirect to page 2 in case of success (self.location.href=page2...) and show the pop-up on page load (you can use jquery.mb.containerPlus plug in if you like it); otherwise, in case log in faild, you open the pop-up directly on page 1. Read the jquery.ajax documentation, or you can use jQuery Form Plugin to manage your form. |


