Checkout Dynamic drop down list not working
I am customizing my cart. Basically what is happening is that this cart is in a support section of my site for specific people to use. The checkout form is populated automatically from the session variables created at login. All the text entry fields work fine but when i comes to creating a drop down list connected to the information already in the database it will not recognize the current value which in this case is province = BC.
Any ideas?
Here is the code for the drop down box ...
<select name="state_province" id="state_province" title="<?php echo $row_rsUSERNAME['DealerProv']; ?>">
<option value="" <?php if (!(strcmp("", $row_rsUSERNAME['DealerProv']))) {echo "selected=\"selected\"";} ?>>Chose a Province</option>
<?php
do {
?>
<option value="<?php echo $row_rsPROVINCE['ProvAbbrev']?>"<?php if (!(strcmp($row_rsPROVINCE['ProvAbbrev'], $row_rsUSERNAME['DealerProv']))) {echo "selected=\"selected\"";} ?>><?php echo $row_rsPROVINCE['ProvName']?></option>
<?php
} while ($row_rsPROVINCE = mysql_fetch_assoc($rsPROVINCE));
$rows = mysql_num_rows($rsPROVINCE);
if($rows > 0) {
mysql_data_seek($rsPROVINCE, 0);
$row_rsPROVINCE = mysql_fetch_assoc($rsPROVINCE);
}
?>
</select>
I know the information is being passed to the page from tests done. I have also attached the checkout page as it sits now.
Thank you for your help.
Further to the above I tested the dynamic drop down in IE and Firefox on my computer and it didn't work. yet on anothe rcomputer in teh office it works fine. I would say it is a setting on my browser but the dynamic menues in the insert and update pages work fine.