Not exactly the exact name. In general, closer to the point.
I have a form on one page in which I write down one word. The form is idw=3&ida=3 in the verification file and returns an $ _GET array of the following type: idw=3&ida=3 . The fact is that if these values are replaced, then the user will be able to calmly pick the wrong combination, to make a different answer to one question. What he could not do need to make some kind of verification code or easier. If I am in the array GET will pass the words themselves answers. But even so there is a possibility of selection. (it turns out like this: idw=Щука&idsa=Я%20многое%20видал )
Algorithm of the site:
- The user enters a word in the form and presses to send.
- The verification page accepts the word. Actions are taken on him. If the word is not yet in the database, it is added there, after which in all cases one answer is selected and sent to the user GET by an array back to index.php with the form.
- On this page, there were initially queries that just took an ID from the GET array and pulled out the words themselves. Now this page directly gets the words themselves and simply derives them from
$_GET['idw']and others ... - There is no registration on the site, it is essentially a learning bot, it replenishes its base with the help of users.
It is necessary to make so that changing the array in the address bar does not change / forbid the display of the wrong combination of question-answer.