• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

space character in asp 2.0?

Juniper

Platinum Member
I have a form where user submits an article. When the user spaces at the start of the line, the space is not reflected when I print the line. How to I capture the space character? I want to replace it with


thx
 
Well, the asp script that accepts the variable could loop through each character in the input with Mid() until the character is not a space setting say "count" to the index - 1 (could be 0), then (if not 0) loop from 1 to "count" to add together that many "& nbsp ; " hard spaces.

 
Back
Top