|
Posted by Patrick on 06/09/06 15:00
Hi All,
Why does this work in Internet Explorer, but not Mozilla?
I'm reading from a flat file.
As an examle the value of colm1 read from the file is B.
I set in the form page;
<?php $A = 'A'; $B = 'B' ; $C = 'C'; ?>
<select class="inform" name="colm1">
<option value="A" <?php if (strcmp($colm1,$A)==0) echo
"selected='$colm1'";
?>>A</option>
<option value="B" <?php if (strcmp($colm1,$B)==0) echo
"selected='$colm1'";
?>>B</option>
<option value="C" <?php if (strcmp($colm1,$C)==0) echo
"selected='$colm1'";
?>>C</option>
</select>
Thanks for your thoughts,
Patrick
--
Patrick A. Smith Assistant System Administrator
Ocean Circulation Group – USF - College of Marine Science
http://ocgweb.marine.usf.edu Phone: 727 553-3334
The trouble with doing something right the first time is that nobody
appreciates how difficult it was. - La Rochefoucauld
[Back to original message]
|