Distant_storm Posted November 30, 2007 Share Posted November 30, 2007 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 Quote Link to comment Share on other sites More sharing options...
Wes1890 Posted November 30, 2007 Share Posted November 30, 2007 try if ($_SESSION['cap_stored'] != $_POST['cap']) if that doesnt work, then they must not be the same.... or you have a variable misspelled Quote Link to comment Share on other sites More sharing options...
revraz Posted December 1, 2007 Share Posted December 1, 2007 Without seeing all the code, its hard to tell if you started the sessions or not. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.