Jump to content

captcha like math


phphelp01

Recommended Posts

I'm assuming you are allowing the user to input whatever two integers they want:

 

<?php

$field1 = 'integer1'; // first HTML Field name
$field2 = 'integer2'; // Second HTML Field name

if($field1 && $field2 == 4)
{
echo 'Correct Answer';
}
else
{
echo 'Sorry incorrect answer';
echo <<<HTML
<table width="200" padding="0" margin="0">
<tr>
<td>YOUR UPLOAD FORM HERE</td>
</tr>
</table>
HTML;
}

?>

Link to comment
https://forums.phpfreaks.com/topic/138113-captcha-like-math/#findComment-722010
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.