Form Validation Failing to re-populate user form data
SA 2.0.4 in DW CS5.5
Error when the users email entry fails form validation (ie dupe entry), the registration page refreshes with original user data, but the radio group fails to populate with earlier user selection, returning instead the following errors against each radio; (I have replaced the original checked values set by the SA Wizard from "this" and "that" to 1)
array_search() expects parameter 2 to be array, string given in C:\xampp\htdocs\..\..\regme.php on line 167
checked="1" tabindex="5">
array_search() expects parameter 2 to be array, string given in C:\xampp\htdocs\..\..\regme.php on line 170
checked="1" tabindex="6">
The respective lines are as follows;
<div class="lineGroup">
<label for="Registration_group_Membership_Type__1" class="sublabel" > Membership:<span class="requiredIndicator"> *</span></label>
<div class="errorGroup"> <span id="Registration_group_Membership_Type__1_Spry"> <span class="radioFieldGroup_Narrow"> <span class="radioGroup_Narrow">
<label class="radioSublabel_Narrow" for="Registration_group_Membership_Type__1" onBlur="hideServerError('Registration_group_Membership_Type__1_ServerError');"> I am selling
<input type="radio" name="Registration_group_Membership_Type" id="Registration_group_Membership_Type__1" value="1" class="formRadioField_Standard" <?php if (array_search("1", ((isset($_GET["invalid"]) && ValidatedField("regme","Registration_group_Membership_Type"))?ValidatedField("regme","Registration_group_Membership_Type"):array())) !== false) {echo "checked=\"1\"";} ?> tabindex="5">
</label>
<label class="radioSublabel_Narrow" for="Registration_group_Membership_Type__2" onBlur="hideServerError('Registration_group_Membership_Type__1_ServerError');">I am buying
<input type="radio" name="Registration_group_Membership_Type" id="Registration_group_Membership_Type__2" value="2" class="formRadioField_Standard" <?php if (array_search("2", ((isset($_GET["invalid"]) && ValidatedField("regme","Registration_group_Membership_Type"))?ValidatedField("regme","Registration_group_Membership_Type"):array())) !== false) {echo "checked=\"1\"";} ?> tabindex="6">
</label>
</span></span> </span> </div>
</div>
The original option button values applied by SA "this" and "that" have been replaced by 1 and 2, which are the values I want sent to MySQL according to user selection.
Any ideas?
Thanks.