PDA

View Full Version : why random question doesn't work?


financehubs
01-05-2011, 06:03 PM
Because of bot attacks, I just set up a few random questions that need calculations (e.g. how much is 2% of 100) to figure out an answer, and I tested myself a few minutes ago by registering with a wrong answer, but it still went thru - registration successful. Can someone help why the Q&A didn't work?

Lynne
01-05-2011, 06:21 PM
What had you entered as the correct answer in the admincp?

financehubs
01-05-2011, 06:25 PM
I entered 2 as the correct answer for the question 2% of 100 equals how much.

But the point is I randomly chose an answer which I know for sure doesn't match the answer I put in admincp, I was still able to get thru.

Digital Jedi
01-05-2011, 06:30 PM
Have you tried requiring the answer to be written out, then putting "two" as the correct answer? Just to see if the short, one character answer is the problem.

Lynne
01-05-2011, 06:32 PM
What version of vB? And you didn't put anything in the Regular Expression text area, right?

I just entered that exact question/answer on my default 4.1 test site and I got an error when I entered a wrong answer.

financehubs
01-05-2011, 06:36 PM
vb4.1. I did put ^[A-Z0-9 ]+$ in the regular expression text area. Should I leave it blank?

Also, in order to avoid confusion, in my question, I specified enter a number, not spelling it out.

--------------- Added 1294260364 at 1294260364 ---------------

Just left regular expression text area blank, and it works now. That appears to be the problem. Not sure what's the use of the expression though.

Lynne
01-05-2011, 08:14 PM
Do you understand what Regular Expressions are used for? If not, I'd just leave that blank because in most cases, you will not need it there. (You specified that any letter from A-Z or 0-9 would work in that field.... plus a dollar sign? (Not sure what you meant there.))