home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Documentation / snippets / ucase.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  707 b   |  39 lines

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