close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Checkout CSS

Thread began 3/23/2011 11:30 am by bill173836 | Last modified 3/25/2011 10:27 am by bill173836 | 1470 views | 7 replies

bill173836

Thanks, that allowed the form to accept the data but if the month or year are not chosen its not showing the error message correctly its not bold or red.


Expiration Month:</strong>
<span id="sprytextfield3">
<span class="fieldGroup">
<select name="exp_month" 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="exp_year" 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:)
}
}
}?>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...