The TRIM function can return a string without front and follow -up space (TRIM).
This is mainly applied to the user's input to prevent users from being careful, and enter an additional space, which causes the verification to be unable to pass, and is mostly used for user names and passwords. In many cases, the decompression password of the Winrar replicated will be default. Enter a space, so this needs attention.
When obtaining a string, using Trim to clean up the space before and after, it is a good habit of program developers.
How to use:
password = TRIM (request (Password))
DIM TXTTXT = This is a Beautiful Day!
document.write (trim (txt))
Output: this is a beautical day!
ASP LTRIM function
The LTRIM function can return a string without a front -not -with aircraft (LTRIM)
DIM TXTTXT = This is a Beautiful Day!
document.write (ltrim (txt))
Output: this is a beautical day!
asp rtrim
The RTRIM attribute can return a string without follow -up space (RTRIM)
DIM TXTTXT = This is a Beautiful Day!
document.write (rtrim (txt))
Output: this is a beautical day!