I have a webpage generated with php with a form placed in a div. The form is submitted using Ajax and validated on the server side. If there is an error, the contents of the div are replaced with an updated form with error messages. If there are no errors in the form, I want to reload the entire page from the ajax response, not just the div. Does anyone know how to do this? I tried to send a location header, but it puts a new page in a div. I also tried javascript window.location, but I don't know how to do this when the ajax response is received. I do not use jQuery, so I want to do this in javascript plan and / or php. Thanks in advance!
source share