I am running into a problem making my radio group entries stick. I have several radio groups on my form, all of which are optional. Everything on my form sticks when validation fails, except for the radio groups.
I have tried the following for a radio group named Sommelier_Queen:
<input <?php if (!(strcmp(((isset($_POST["Sommelier_Queen"]))?$_POST["Sommelier_Queen"]:""),"Cab_Double"))) {echo "checked=\"checked\"";} ?> type="radio" name="Sommelier_Queen" value="Cab_Double" id="sommelierQueen_0" />
And:
<input <?php if (!(strcmp((ValidatedField("register2","Sommelier_Queen")),"Cab_Double"))) {echo "checked=\"checked\"";} ?> type="radio" name="Sommelier_Queen" value="Cab_Double" id="sommelierQueen_0" />
I have also tried replacing the first "Sommelier_Queen (after register2) with "Cab_Double", which also didn't work. And I put spry radio group validation in place with no results. Not sure what else to try. Any help would be appreciated.
Thank you.