Drop down list validated entries
I have the following drop down list and I want it to remember the validated entry but it does not remember it. The initial drop down list code was:
<select name="discount" class="formtextfields" id="discount" style="width:184px" >
<option value="">Please Choose</option>
<option value="1.05">1.05</option>
<option value="1.30">1.30</option>
</select>
I then changed this to dynamic and applied the validated entry so it would remember but it does not work.
<select name="discount" class="formtextfields" id="discount" style="width:184px" >
<option value="" <?php if (!(strcmp("", (ValidatedField("addcustomer_036","discount"))))) {echo "selected=\"selected\"";} ?>>Please Choose</option>
<option value="1.05" <?php if (!(strcmp(1.05, (ValidatedField("addcustomer_036","discount"))))) {echo "selected=\"selected\"";} ?>>1.05</option>
<option value="1.30" <?php if (!(strcmp(1.30, (ValidatedField("addcustomer_036","discount"))))) {echo "selected=\"selected\"";} ?>>1.30</option>
</select>
I have attached the whole page as this may help in resolving this matter.