Php - Limit number of entries in database a specific type of field
<p>I'm using php. I have a form which contains 2 questions with 2 radio buttons. I limited the number of entries in my database for each radio button. So, for example the option 1 will became unvailable if the number of entries in database is = limit number I defined. When the user open the form it will appear like this:</p>

<pre><code>Question1:

Option 1 - Unvailable
° Option 2
° Option 3
</code></pre>

<p>This works perfectly. But i have to do a second test before the user submits the form to test if the option he selected (for example the option 2) is still available.
The problem is that i don't know how i can get the value the user selected, without enter in a if statement the value "manually". I don't want to enter the value in the code because the form is created by a user through an interface. So, if he modify one value option, I have to modify the code to replace the value in the if statement.</p>

<p>When the user clicks on the submit button, i want that the program detects which button he selected and the value of the option and test if it is still available.</p>

<p>Can you please tell me how can I do this second test?</p>

<p>Thanks</p>
