I have a signup script to a website that displays the capture in a browser to be solved by a human.
This page shows the captcha etc, the code will explain it better:
if(!isset($_GET['captchacode']))
{
//get the captcha and token
$arr = get_token("https://site.com/acct/register",$pid);
$token = $arr['token'];
if(!isset($_SERVER['_']))
{
echo "<img src='captcha/captcha".$pid.".jpg' width=300/><br />";
echo "<FORM action='" . $_SERVER['PHP_SELF'] . "' method='GET'>";
echo "Type in the code <input type='text' size='15' name='captchacode' />";
echo "<input type='submit' value='submit answer' />";
echo "<input type='hidden' name='hash' value='" . $token . "' />";
echo "</FORM>";
exit(1);
}
}
if(isset($_GET['captchacode']))
{
$solved_captcha = $_GET['captchacode'];
$token = $_GET['hash'];
}
Now the problem I am having is after my script finishes and goes onto the next iteration in the loop the $_GET variables are already set so it doesn't scrape the captcha again etc.
I have been racking my head

trying to think of an alternate way to pass the information. Any input would be great.