R
E
S
O
U
R
C
E
S
       Home      Products & Services      Contact Us      Links


WebHatchers will design & develop your site for you.
_______________________

Website Menu Heaven: menus, buttons, etc.
_______________________

Send us your questions.
_______________________

site search by freefind
_______________________

HOME
SEO, Google, Privacy
   and Anonymity
Browser Insanity
JavaScript
Popups and Tooltips
Free Website Search
HTML Form Creator
Animation
Buttons and Menus
Counters
Captchas
Image Uploading
CSS and HTML
PHP
AJAX
XPATH
Website Poll
IM and Texting
Databases—MySQL
   or Not MySQL
Personal Status Boards
Content Management
   Systems
Article Content
   Management Systems
Website Directory
   CMS Systems
Photo Gallery CMS
Forum CMS
Blog CMS
Customer Records
   Management CMS
Address Book CMS
Private Messaging CMS
Chat Room CMS
JavaScript Charts
   and Graphs




Free Personal Status Boards (PSB™)

Free Standard Free PSB

Free PSB Pro Version

Free Social PSB

Free Social PSB Plus (with Email)

Free Business PSB

Free Business PSB Plus (with Email)

PSB demo

Social PSB demo

Business PSB demo

So what's all this PSB stuff about?

Chart comparing business status boards

PSB hosting diagram

PSB Licence Agreement



Copyright © 2002 -
MCS Investments, Inc. sitemap

PSBs, social networking, social evolution, microcommunities, personal status boards
PSBs, social networking, business personal status boards
website design, ecommerce solutions
website menus, buttons, image rotators
Ez-Architect, home design software
the magic carpet and the cement wall, children's adventure book
the squirrel valley railroad, model railroad videos, model train dvds
the deep rock railroad, model railroad videos, model train dvds

PHP Captcha Scripts and Tutorial with Simple Question Answering



PHP Captcha Scripts and Tutorial with Arithmetic Question



PHP Captcha Scripts and Tutorial with Text Copying



PHP Captcha Scripts and Tutorial with Simple Question Answering



PHP Captcha Scripts and Tutorial with reCAPTCHA



PHP Captcha Scripts and Tutorial with Google reCAPTCHA


This page is a tutorial on "PHP Captcha Scripts and Tutorial with Simple Question Answering". Our overall method is to use a simple image of a challenge question and the sentence it refers to. Both PHP Captcha Scripts and Tutorial with Arithmetic Question and PHP Captcha Scripts and Tutorial with Text Copying use the PHP GD Library and a TrueType font and PHP to make captchas. But this script just displays the image of the two sentences, as you can see in the example above.

Using Google reCAPTCHA is the safest free way to do captchas, and it's popular as well as effective. But it's more fun to make your own captcha system, like the ones we supply.

The rest of this page assumes you wish to use our simple question answering captcha script. There are lots of type of questions you can use, as you can see:

In all cases, you need to have the answer be in the PHP script on the form page, or the PHP script referenced in the action attribute of the form tag, since a bot can find it in a JavaScript variable but not in PHP code. We're all in a heap of trouble if they can peruse the PHP scripts on our servers! But checking out your HTML and JavaScript remotely is not that difficult.

The PHP Captcha Scripts and Tutorial with Simple Question Answering script isn't a script—it's a bunch of them. Anywhere you want a very simple captcha you may apply this method. Type text puzzles into your favorite graphics program. Our favorite graphics program is ImageForge. Save:


PHP Captcha Scripts and Tutorial with Simple Question Answering

or some other question similar to it, as a .png image. Use it in your logins, registation scripts, polls, etc. We use it in register-by-email.html, PHP-guestbook-script.html, message-login.html, forum-login.html, chat-room-login.html, and blog-login.html.

Below is an excerpt from our private messaging login script, which uses the simple 2-sentence challenge that looks like this on the page:

PHP Captcha Scripts and Tutorial with Simple Question Answering

and looks like this in HTML code:

<IMG SRC="login-question.png" WIDTH=295 HEIGHT=36 BORDER=0>

And here is the PHP code that looks for the right answer—"of"—and gives a message and reloads the page if the captcha challenge is not answered correctly (the PHP section is much longer than this, of course):

$L = $_POST['captcha'];if ($L<>"of"){
echo '<script language="javascript">alert("Please answer question."); window.location = "message-login.php"; </script>';

Here is an excerpt from our private messaging login script, which uses the simple 2-sentence challenge:

<h3>Login or Sign-up</h3>


<div id='pw' style='position:absolute;top:110px;left:600px;width:350px;border:4px solid blue;background-color:#8aa;'><table border='0' cellspacing=0 cellpadding=6><tr><th style='font-size:24;text-align:center'>Sign Up</th></tr>
<form id='formpw' name="formpw" method="post" action="message-login.php" onsubmit="return validatepassword()">
<tr><td><label for="User Name"><b>User Name: </b><input type="text" name="username" size="20" maxlength="20" value=""></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td><label for="Password"><b>Password: &nbsp;&nbsp;&nbsp;</b><input type="password" name="upassword" size="20" maxlength="20" value=""></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td><label for="Email"><b>Email: &nbsp;&nbsp;&nbsp;</b><input type="text" name="email" size="25" maxlength="65" value=""></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td><label for="Please answer question"><b>Please answer question: </b><input type="text" name="captcha" size="16" maxlength="16" value=""></label></td></tr>
<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="login-question.png" WIDTH=295 HEIGHT=36 BORDER=0></td></tr>

<tr><td><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="Submit" name="register">
<input type="reset" value="Reset"></form></td></tr></table>
</div>

<div id='login' style='position:absolute;top:110px;left:100px;width:350px;border:4px solid blue;background-color:#8aa;'><table border='0' cellspacing=0 cellpadding=6><tr><th style='font-size:24;text-align:center'>Login</th></tr>
<form id='formlogin' name="formlogin" method="post" action="message-login.php" onsubmit="return validatepasswordlogin()">
<tr><td><label for="User Name"><b>User Name: </b><input type="text" name="uname" size="20" maxlength="20" value=""></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td><label for="Password"><b>Password: &nbsp;&nbsp;&nbsp;</b><input type="password" name="upasswordlogin" size="20" maxlength="20" value=""></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="Submit" name="login">
<input type="reset" value="Reset"></form></td></tr></table>
</div>