cfinput - validateAt onserver in input type text
cfinputValidateAtOnServer.cfm
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfinput: how to use validateAt onserver in input type text in coldfusion</title>
</head>
<body>
<h2 style="color:SaddleBrown; font-style:italic">cfinput example: how to use validateAt onserver</h2>
<hr width="475" align="left" color="RosyBrown" />
<br />
<cfif IsDefined("Form.SubmitAge")>
<cfoutput>
<h3 style="color:OrangeRed;">
Your age is: #Form.Age#
</h3>
</cfoutput>
</cfif>
<cfform name="InputTypeTextValidateAtTest" method="post" format="html">
<table border="1" cellpadding="5" cellspacing="0" bordercolor="Orange">
<tr>
<td colspan="2" bgcolor="DeepPink" style="color:Snow; font-size:large" align="center">
Age Submit Form
</td>
</tr>
<tr>
<td style="color:RosyBrown; font-weight:bold">
Your Age
</td>
<td>
<cfinput
name="Age"
type="text"
style="background-color:Wheat; color:RosyBrown; width:250px; height:25px; font-size:large; font-style:italic; font:'Comic Sans MS', cursive"
required="yes"
validate="integer"
message="Input valid age."
validateat="onserver"
>
</td>
</tr>
<tr>
<td colspan="2" align="right">
<cfinput
name="SubmitAge"
type="submit"
value="Submit"
style="height:45px; width:150px; font-size:large; font-style:italic; font-weight:bold; color:OrangeRed;"
>
</td>
</tr>
</table>
</cfform>
</body>
</html>
- cfinput - monthnames in input type datefield
- cfinput - typeahead for autosuggest in input type text
- cfimage - generate random captcha text
- cfimage - create a captcha
- StructIsEmpty() - determine whether a structure contains data
- cfsetting - enablecfoutputonly attribute
- cfcalendar - change selected date in calendar