Trying to replace SecurityAssist generated input field with dropdown menu selection (for "countries" listing)
Hello,
I would like a dropdown list for people to select their country on the on the SecurityAssist generated registration and update pages. The code I currently have in place is:
<tr>
<div class="lineGroup">
<td><label for="Country" class="sublabel" > Country:</label></td>
<td> <input id="Country" name="Country" type="text" value="<?php echo((isset($_GET["invalid"])?ValidatedField("presenterswitchboarddataupdate","Country"):"".$WADApresenter_data_update->getColumnVal("Country") ."")); ?>" class="formTextfield_Medium" tabindex="6" title="Please enter a value.">
</td>
</div>
</tr>
I have on the ready a country dropdown menu selection listing of:
<select id="Country" name="Country" type="text" value="????????" selected="????">
<option value="Afganistan">Afghanistan</option>
blah blah blah
<option value="Zimbabwe">Zimbabwe</option>
</select>
ready to go.
My difficulty is that where I have put the first set of question marks, the current Input field generated by SecurityAssist already has in place:
value="<?php echo((isset($_GET["invalid"])?ValidatedField("presenterswitchboarddataupdate","Country"):"".$WADApresenter_data_update->getColumnVal("Country") ."")); ?>" class="formTextfield_Medium" tabindex="6" title="Please enter a value.">
I am not quite certain if and or where that given precreated input value should be inserted relative to my intended dropdown menu.
I tried inserting the whole, as a replacement, but it would not work.
Thank you.