Skip to content Skip to sidebar Skip to footer

Javascript Not Loading After Php Header() Redirect

I have a page where a user can sign in by submitting a basic form, the data is sent to a separate PHP script (for validation, etc). The PHP script ends with the header() function t

Solution 1:

the javascript reference should be at the bottom of the HTML page before the closing body tag. Just cut the reference of the javascript to the the page bottom below:

<scripttype="text/javascript"src="resources/script.js"></script></body></html>

The problem is that jquery got rendered before your page load.

Post a Comment for "Javascript Not Loading After Php Header() Redirect"