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

  1. <!--- This example shows the use of LTrim --->
  2. <HTML>
  3.  
  4. <HEAD>
  5. <TITLE>
  6. LTrim Example
  7. </TITLE>
  8. </HEAD>
  9.  
  10. <BODY bgcolor=silver>
  11.  
  12. <H3>LTrim Example</H3>
  13.  
  14. <CFIF IsDefined("form.myText")>
  15. <CFOUTPUT>
  16. <PRE>
  17. Your string:    "#form.myText#"
  18. Your string:    "#Ltrim("#form.myText#")#"
  19. (left trimmed)
  20. </PRE>
  21. </CFOUTPUT>
  22.  
  23. </CFIF>
  24.  
  25. <FORM ACTION="ltrim.cfm" METHOD="POST">
  26. <P>Type in some text, and it will be modified
  27. by Ltrim to remove leading spaces from the left
  28. <P><INPUT TYPE="Text" NAME="myText" VALUE="     TEST">
  29.  
  30. <P><INPUT TYPE="Submit" NAME="">
  31. </FORM>
  32.  
  33.  
  34. </BODY>
  35.  
  36. </HTML>       
  37.