Hi,
I think you have to solve this client-side. A good javascript can help you. For some ideas you can look at this link, http://www.vtweb.it/freetime/indovina.html
it's a little script I made.
You can get the question and the answer from a db. But I hint you to get the "up to ten" answer in the textarea. If the counter is 10 then just do a document.location.replace("badanswer.php"), if any inserted answer is rigth, do a document.location.replace("yourock.php").
I hope all this helps.
ARGH! It' first time I try this from mozilla... from there don't work... grrr. Need IE. psss... don't tells anyone, I'm missing some "document" before form name...