I have been trying to redirect a page to an alert like this:
header('Location: javascript:alert("Sorry. Not Found");');
But it is not working. Is there any way to do this apart from directing to a page with script on it. Thanks!
No, the parameter for a Location header is a URI.