With this everything works except it shows the error message even when something is selected -
<div class="lineGroup"> <label for="royalcrown" class="sublabel" > royalcrown or rc pend:<span class="requiredIndicator"> *</span></label>
<select class="formMenufield_Large" name="royalcrown" id="royalcrown" tabindex="5" >
<option value="<?php echo($WADAhorses_update->getColumnVal("royalcrown")); ?>" <?php if (!(strcmp("royalcrown", $WADAhorses_update->getColumnVal("royalcrown")))) {echo "selected=\"selected\"";} ?>><?php echo($WADAhorses_update->getColumnVal("royalcrown")); ?></option>
<option value="Royal Crown">Royal Crown</option>
<option value="Royal Crown Pending">Royal Crown Pending</option>
<option value="Remove from RC">Remove From Royal Crown</option>
</select>
<?php
if (ValidatedField('stallionupdate','stallionupdate')) {
if ((strpos((",".ValidatedField("stallionupdate","stallionupdate").","), "," . "2" . ",") !== false || "2" == "")) {
if (!(false)) {
?><span class="serverInvalidState" id="royalcrown_ServerError">Please enter a value.</span><?php //WAFV_Conditional stallion_update.php stallionupdate(2:)
}
}
}?>
</div>