home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / snippets / lcase.cfm < prev    next >
Encoding:
Text File  |  2001-06-13  |  754 b   |  40 lines

  1. <!--- This example shows the use of LCase --->
  2.  
  3. <HTML>
  4.  
  5. <HEAD>
  6. <TITLE>
  7. LCase Example
  8. </TITLE>
  9. </HEAD>
  10.  
  11. <BASEFONT FACE="Arial, Helvetica" SIZE=2>
  12. <BODY  bgcolor="#FFFFD5">
  13.  
  14. <H3>LCase Example</H3>
  15.  
  16. <CFIF IsDefined("form.sampleText")>
  17.     <CFIF form.sampleText is not "">
  18.     <P>Your text, <CFOUTPUT>#form.sampleText#</cFOUTPUT>,
  19.     returned in lowercase is  <CFOUTPUT>#LCase(form.sampleText)#</CFOUTPUT>.
  20.     <CFELSE>
  21.     <P>Please enter some text.
  22.     </CFIF>
  23. </CFIF>
  24.  
  25. <FORM ACTION="lcase.cfm" METHOD="POST">
  26. <P>Enter your sample text, and press "submit" to see
  27. the text returned in lowercase:
  28.  
  29. <P><INPUT TYPE="Text" NAME="SampleText" VALUE="SAMPLE">
  30.  
  31. <INPUT TYPE="Submit" NAME="" VALUE="submit">
  32.  
  33.  
  34. </FORM>
  35.  
  36.  
  37. </BODY>
  38.  
  39. </HTML>       
  40.