store whitespace but not interpret it in <br>
Hello all,
my problem is the following: I have a page where the user enters some data, let's say :
string1 = 'AGREHREHRHREHRE';
string2 = 'WEFEWGEWGEGEWGEGEGWG';
These data I use in another page, so I use the "
" tag to display what the user has entered. The problem arrives when the user writes something like EWGEGEW EFGEGEW EGRGREGRE RGVFVDSVDS This string, when I pass it into a variable, it is stored with newlines. I don't want to make any substitution of the newlines, as I want to preserve the spaces in the next page, and display the user's sequence as entered and not with 3 's, because there were 3 spaces in the original string... any ideas?
Greg K posted this at 16:10 — 13th April 2006.
He has: 2,145 posts
Joined: Nov 2003
Can you post the code here? Seems very strange that it is changing spaces to 's on you.
-Greg
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.