I want to validate a form, and if the form is not valid then mark it in red and display an error message next to it. This is not a problem. However, when the form does validate I have a PHP code to use the information. But the problem is, that if I validate with PHP I have to move to a new page just to display the "Form validated" message, but I want to stay on the same page. To do this, I'm thinking about using JS to validate the form, then call PHP, and when the PHP code finished, display a message on the same page, that means, it needs to be a Javascript message. But how do I coordinate JS and PHP like that?? Help will be appreciated :D
Thanks
Thanks
Comment