StarvingArtist Posted March 12, 2011 Share Posted March 12, 2011 Hi all -- In an if clause there is this line: if (PSEUDO_CAPTCHA_RESPONSE && PSEUDO_CAPTCHA_RESPONSE <> $_POST['pseudo-captcha']) { echo 'Your pseudo-captcha response '.$_POST['pseudo-captcha'].' is invalid! Please use your browser\'s back button, correct and submit again.<br />'; exit; } It works fine -- that's not a problem. BUT, rather than have this bare bones one-liner message displayed on the basic white browser window, I'd much rather have it display my own page with all the styling intact, that says the same thing. Trouble is, I don't know how to look up what I want in the gazillion books I have. So, I'm turning to the source for all things PHP! Any suggestions of what word in any index this falls under would be wonderful. AND, of course so would the needed code! Thanks much. Clair Quote Link to comment https://forums.phpfreaks.com/topic/230416-direct-an-if-clause-error-check-to-a-web-page/ Share on other sites More sharing options...
StarvingArtist Posted March 12, 2011 Author Share Posted March 12, 2011 Replying to my own question -- duh" I just took out the line and "included" the desired html file in its place. Sometimes things are indeed simple. Clair Quote Link to comment https://forums.phpfreaks.com/topic/230416-direct-an-if-clause-error-check-to-a-web-page/#findComment-1186618 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.