Display error message and stop execution

Thanks, this may help, but I have no idea how to code the redirect page. I couldn’t find an example.