Jump to content

[SOLVED] php code not working (simple compare)


Distant_storm

Recommended Posts

Ok I have a captcha which stored the word in a session, although it is to be md5'vd but becuase i was having errors i took that out. so anyway i do this

if ($_POST['cap'] != $_SESSION['cap_stored']) {

echo "The input did not match<Br />Captcha word entered: " . $_POST['cap'] . "capatcha word stored: " . $_SESSION['cap_stored'];


}

now the session is started correctly and the output values are identical no leading or trailing spaces. What could be the error here

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.