Validating radio buttons in php Femdom virtual chat

Marie, I'm not sure what your create_form_input function does (and I'm confused about some of your HTML), but the following is a very simple works-out-of-the-box demonstration of how to handle radio button logic.

The first thing you should do is test whether any radio buttons are selected or not with the isset function.

I get an "undefined index" error on each of the HTML lines referencing a radio button. I'd have to see the rest of the PHP file to know the exact cause.It is also required to add server side form validation in your form processing script.The user can disable Javascript on their server or even auto-bots might try to submit your form as well.When you use the form data in an SQL query, it should be validated against SQL Injection.By Steve Suehring, Janet Valade Validating web form data from drop-downs (or select/option elements), radio buttons, or check boxes should be done in the PHP.