This is code... Everything always returns 0.. After the code is my debug at the end of page results everytime. Please help. I'm sure it is something easy I just over looked. TY!
$captcha = str_replace(".png", "", $captchafile);
$captchaentry = str_replace(" ", "", strtolower($captchaentry));
if ($captcha == "anchfy38" && $captchaentry == "teeheeha") { $captchareply = "1"; } else { $captchareply = "0"; }
if ($captcha == "be6tyd8f" && $captchaentry == "screwy") { $captchareply = "1"; } else { $captchareply = "0"; }
if ($captcha == "bs6tq3mm" && $captchaentry == "badjakel") { $captchareply = "1"; } else { $captchareply = "0"; }
if ($captcha == "bs7yhdf4" && $captchaentry == "horrible") { $captchareply = "1"; } else { $captchareply = "0"; }
if ($captcha == "ie983hr5" && $captchaentry == "piggyday") { $captchareply = "1"; } else { $captchareply = "0"; }
if ($captcha == "ksy2bd5f" && $captchaentry == "captcha") { $captchareply = "1"; } else { $captchareply = "0"; }
if ($captcha == "mkw93ywh" && $captchaentry == "cellphone") { $captchareply = "1"; } else { $captchareply = "0"; }
if ($captcha == "n7e34ghd" && $captchaentry == "misslilly") { $captchareply = "1"; } else { $captchareply = "0"; }
if ($captcha == "oskdnbfe" && $captchaentry == "thelions") { $captchareply = "1"; } else { $captchareply = "0"; }
if ($captcha == "siwj2093" && $captchaentry == "datrocks") { $captchareply = "1"; } else { $captchareply = "0"; }
captchafile = bs7yhdf4.png
captcha = bs7yhdf4
captchaentry = horrible
captchareply = 0
captchafile is the file it calls, captcha is file w/o .png, catchaentry is what user has sent script, captchareply is set w/ code above.
This simply looks at a file with a different filename as the image shows and tells weather or not the entered text is as the image shows.