I am displaying a form to a user with some content and a few radio buttons. How can I know which radio button is checked on server-side after user clicks on submit button in form?
I don't know why it has been marked negative. I searched on google about it but could find nothing. If it is not possible just say can't be done otherwise tell me how it could be done. I am posting some code but I don't think that would help
<input type="radio" name="meme" id="woman" class="input-hidden" />
<label for="woman"><img class="memeimage" src="url1" alt=""/></label>
<input type="radio" name="meme" id="man" class="input-hidden" />
<label for="man"><img class="memeimage" src="url2" alt=""/></label>
Should the PHP code be something like
if(empty($_REQUEST['meme'])) but how will that tell me which radio button is checked.