how can i check session value in regex
Moderator: General Moderators
-
manojsemwal1
- Forum Contributor
- Posts: 217
- Joined: Mon Jun 29, 2009 4:13 am
- Location: India
how can i check session value in regex
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.
-
manojsemwal1
- Forum Contributor
- Posts: 217
- Joined: Mon Jun 29, 2009 4:13 am
- Location: India
Re: how can i check session value in regex
send some answer
- flying_circus
- Forum Regular
- Posts: 732
- Joined: Wed Mar 05, 2008 10:23 pm
- Location: Sunriver, OR
Re: how can i check session value in regex
Since you asked nicely...manojsemwal1 wrote:send some answer
Why are you using a regex? Either it matches or it doesn't, so why dont you just compare the two values instead?
-
manojsemwal1
- Forum Contributor
- Posts: 217
- Joined: Mon Jun 29, 2009 4:13 am
- Location: India
Re: how can i check session value in regex
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
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.