Page 1 of 1

how can i check session value in regex

Posted: Wed Jan 06, 2010 5:47 am
by manojsemwal1
i have a form where i am using captcha image .when the user will fill up the form it should be fill the security code appearing in captcha image. iam using regex validation so how can i validate user does not blank the filled and the captcha image should be matched by user entered text.

Re: how can i check session value in regex

Posted: Wed Jan 06, 2010 11:21 pm
by manojsemwal1
send some answer

Re: how can i check session value in regex

Posted: Wed Jan 06, 2010 11:33 pm
by flying_circus
manojsemwal1 wrote:send some answer
Since you asked nicely...

Why are you using a regex? Either it matches or it doesn't, so why dont you just compare the two values instead?

Re: how can i check session value in regex

Posted: Thu Jan 07, 2010 1:15 am
by manojsemwal1
iam using regex because my form is having regex validation so iam using captcha for security purpose so i need to compare the value which is filled by user and captcha image

Re: how can i check session value in regex

Posted: Thu Jan 07, 2010 8:03 am
by timWebUK
You don't need to use to regex. You just need to compare the user entered value, with the captcha image value stored in the session.