Jump to content

direct an if clause error check to a web page


Recommended Posts

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.