Code: Select all
andCode: Select all
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
Alright, I may have figured this out, but I did run into a problem...
What if I made a simple jpg, that had a blue background.
(one thing i dont know is, where to put the: img src=/the directory of image/) but this script should work for a captcha huh?
Then put that on the index_content.php
Then just type in:Code: Select all
<?php
<form action="validate.php" method="post">
$captcha = new captcha(5, 'jpeg', 'ASDFGHJKL');
$captcha = new captcha();
$CaptchaString = $captcha->GetCaptchaString();
//Check if userinput and CAPTCHA String are equal
if ($_SESSION['CAPTCHAString'] == $_POST['captchastring'])
{
echo 'Validation Matches.';
}
else
{
echo 'Validation does not match.';
}
}
else
{
echo 'Unknown target: ' . $goto;
}
?>Code: Select all
andCode: Select all
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]