<!--- This example shows the use of CFINPUT controls in
a CFFORM --->
<HTML>
<HEAD>

<TITLE>
CFFORM Example
</TITLE>
</HEAD>

<BASEFONT FACE="Arial, Helvetica" SIZE=2>
<BODY  bgcolor="#FFFFD5">

<H3>CFFORM Example</H3>

<CFIF IsDefined("form.oncethrough") is "Yes">
	<CFIF IsDefined("form.testVal1") is True>
	<H3>Results of Radio Button Test</H3>
	
		<CFIF form.testVal1 is "Yes">Your radio button answer was yes</CFIF>
		<CFIF form.testVal1 is "No">Your radio button answer was no</CFIF>
	</CFIF>
	
	<CFIF IsDefined("form.chkTest2") is True>
	<H3>Results of Checkbox Test</H3>
		Your checkbox answer was yes
	<CFELSE>
		<H3>Results of Checkbox Test</H3>
		Your checkbox answer was no
	</CFIF>

	<CFIF IsDefined("form.textSample") is True AND form.textSample is not "">
	<H3>Results of Credit Card Input</H3>
		Your credit card number, <CFOUTPUT>#form.textSample#</CFOUTPUT>, was 
		valid under the MOD 10 algorithm.
	</CFIF>
	
	<CFIF IsDefined("form.sampleSlider") is "True">
	<H3>You gave this page a rating of <CFOUTPUT>#form.sampleSlider#</CFOUTPUT></H3>	
	</CFIF>
	<hr noshade>
</CFIF>
<!--- begin by calling the cfform tag --->
<CFFORM ACTION="cfform.cfm" METHOD="POST" ENABLECAB="Yes">
<TABLE>
<TR>
	<TD>
	<H4>This example displays the radio button input type
	for CFINPUT.</H4>
	Yes <CFINPUT TYPE="Radio" NAME="TestVal1" VALUE="Yes" CHECKED="yes">
	No <CFINPUT TYPE="Radio" NAME="TestVal1" VALUE="No">
	</TD>
</TR>
<TR>
	<TD>
	<H4>This example displays the checkbox input type for CFINPUT.</H4>
	<CFINPUT TYPE="Checkbox" NAME="ChkTest2" VALUE="Yes">
	</TD>
</TR>

<TR>
	<TD>
	<H4>This example shows a client-side validation for
	CFINPUT text boxes.</H4>
	<BR>(<I>This item is optional</I>)<BR>
	Please enter a credit card number:
	<CFINPUT TYPE="Text" NAME="TextSample" MESSAGE="Please enter a Credit Card Number" VALIDATE="creditcard" REQUIRED="No">
	</TD>
</TR>

<TR>
	<TD>
	<H4>This example shows the use of the CFSLIDER tag.</H4>
	<P>Rate your approval of this example from 1 to 10 by sliding the control.
	<P>1 <CFSLIDER NAME="sampleSlider" LABEL="Sample Slider" RANGE="1,10" MESSAGE="Please enter a value from 1 to 10" SCALE="1" BOLD="No" ITALIC="No" REFRESHLABEL="No"> 10
	</TD>
</TR>
</TABLE>

<P><INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="show me the result">
<INPUT TYPE="Hidden" NAME="oncethrough" VALUE="yes">
</CFFORM>

</BODY>
</HTML>       
