Thanks,
That helped I've also tightened up the form and made the expire month and year menu items but now the validation is working correctly. Here is the code can you see where I might have made a mistake because I can't see it. It acts as though nothing has been entered. And gives me the error message but instead of red its black.
Expiration Month:</strong>
<span id="sprytextfield3">
<span class="fieldGroup">
<select name="cc_type" id="exp_month" onBlur="if (document.getElementById('cc_typeServerValidation')) document.getElementById('cc_typeServerValidation').style.display='none';" >
<option value="" <?php if (!(strcmp("", (ValidatedField("confirm","exp_month"))))) {echo "selected=\"selected\"";} ?>>Choose Expire Month</option>
<option value="01" <?php if (!(strcmp("01", (ValidatedField("confirm","exp_month"))))) {echo "selected=\"selected\"";} ?>>January</option>
<option value="02" <?php if (!(strcmp("02", (ValidatedField("confirm","exp_month"))))) {echo "selected=\"selected\"";} ?>>February</option>
<option value="03" <?php if (!(strcmp("03", (ValidatedField("confirm","exp_month"))))) {echo "selected=\"selected\"";} ?>>March</option>
<option value="04" <?php if (!(strcmp("04", (ValidatedField("confirm","exp_month"))))) {echo "selected=\"selected\"";} ?>>April</option>
<option value="05" <?php if (!(strcmp("05", (ValidatedField("confirm","exp_month"))))) {echo "selected=\"selected\"";} ?>>May</option>
<option value="06" <?php if (!(strcmp("06", (ValidatedField("confirm","exp_month"))))) {echo "selected=\"selected\"";} ?>>June</option>
<option value="07" <?php if (!(strcmp("07", (ValidatedField("confirm","exp_month"))))) {echo "selected=\"selected\"";} ?>>July</option>
<option value="08" <?php if (!(strcmp("08", (ValidatedField("confirm","exp_month"))))) {echo "selected=\"selected\"";} ?>>August</option>
<option value="09" <?php if (!(strcmp("09", (ValidatedField("confirm","exp_month"))))) {echo "selected=\"selected\"";} ?>>September</option>
<option value="10" <?php if (!(strcmp("10", (ValidatedField("confirm","exp_month"))))) {echo "selected=\"selected\"";} ?>>October</option>
<option value="11" <?php if (!(strcmp("11", (ValidatedField("confirm","exp_month"))))) {echo "selected=\"selected\"";} ?>>November</option>
<option value="12" <?php if (!(strcmp("12", (ValidatedField("confirm","exp_month"))))) {echo "selected=\"selected\"";} ?>>December</option>
</select>
<span class="textfieldRequiredMsg">Please enter a valid two-digit month.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span><span class="textfieldMinCharsMsg">Please enter a valid two-digit month.</span><span class="textfieldMaxCharsMsg">Exceeded maximum number of characters.</span><span class="textfieldMinValueMsg">The entered value is less than the minimum required.</span><span class="textfieldMaxValueMsg">The entered value is greater than the maximum allowed.</span>
<?php
if (ValidatedField("confirm","confirm")) {
if ((strpos((",".ValidatedField("confirm","confirm").","), "," . "9" . ",") !== false || "9" == "")) {
if (!(false)) {
?>
<span class="textfieldServerError" id="exp_monthServerValidation">
Please choose a month.
</span>
<?php //WAFV_Conditional confirm.php confirm(9:)
}
}
}?>
</span>
</span>
<strong>Expiration Year:</strong>
<span id="sprytextfield4">
<span class="fieldGroup">
<select name="cc_type" id="exp_year" onBlur="if (document.getElementById('cc_typeServerValidation')) document.getElementById('cc_typeServerValidation').style.display='none';" >
<option value="" <?php if (!(strcmp("", (ValidatedField("confirm","exp_year"))))) {echo "selected=\"selected\"";} ?>>Choose Expire Year</option>
<option value="2011" <?php if (!(strcmp("2011", (ValidatedField("confirm","exp_year"))))) {echo "selected=\"selected\"";} ?>>2011</option>
<option value="2012" <?php if (!(strcmp("2012", (ValidatedField("confirm","exp_year"))))) {echo "selected=\"selected\"";} ?>>2012</option>
<option value="2013" <?php if (!(strcmp("2013", (ValidatedField("confirm","exp_year"))))) {echo "selected=\"selected\"";} ?>>2013</option>
<option value="2014" <?php if (!(strcmp("2014", (ValidatedField("confirm","exp_year"))))) {echo "selected=\"selected\"";} ?>>2014</option>
<option value="2015" <?php if (!(strcmp("2015", (ValidatedField("confirm","exp_year"))))) {echo "selected=\"selected\"";} ?>>2015</option>
<option value="2016" <?php if (!(strcmp("2016", (ValidatedField("confirm","exp_year"))))) {echo "selected=\"selected\"";} ?>>2016</option>
<option value="2017" <?php if (!(strcmp("2017", (ValidatedField("confirm","exp_year"))))) {echo "selected=\"selected\"";} ?>>2017</option>
<option value="2018" <?php if (!(strcmp("2018", (ValidatedField("confirm","exp_year"))))) {echo "selected=\"selected\"";} ?>>2018</option>
<option value="2019" <?php if (!(strcmp("2019", (ValidatedField("confirm","exp_year"))))) {echo "selected=\"selected\"";} ?>>2019</option>
<option value="2020" <?php if (!(strcmp("2020", (ValidatedField("confirm","exp_year"))))) {echo "selected=\"selected\"";} ?>>2020</option>
</select>
<span class="textfieldRequiredMsg">Please enter a valid four-digit year.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span><span class="textfieldMinCharsMsg">Please enter a valid four-digit year.</span><span class="textfieldMaxCharsMsg">Exceeded maximum number of characters.</span><span class="textfieldMinValueMsg">The entered value is less than the minimum required.</span>
<?php
if (ValidatedField("confirm","confirm")) {
if ((strpos((",".ValidatedField("confirm","confirm").","), "," . "10" . ",") !== false || "10" == "")) {
if (!(false)) {
?>
<span class="textfieldServerError" id="exp_yearServerValidation">
Please choose a year.
</span>
<?php //WAFV_Conditional confirm.php confirm(10:)
}
}
}?>
</span>
</span>