PDA

View Full Version : a problem passing control characters in query string


JoeyLemor
11-19-2002, 11:10 PM
whenever I write something inside a <textarea> form element, after i press "enter" in the keyboard, the characters in the next line are not passed on to the querystring. I've tried both "<form method=post>" and "<form method=get"> but it doesn't show up either way.

Is the query string that is passed supposed to also show the control characters (i.e "carriage return" and "line feed") and the characters after that? If so, how?


Thanks :)

----------------
I have improvised by inserting "<BR>" inside the "<textarea> element" in order to show the next line. But the form that i've used to post this message doesn't need that (i.e. i just press enter).

scoutt
11-20-2002, 09:22 AM
can we see the code?

when ever you hit submit for text in a textarea it will pass along the rturns as \r\n and you have to replace them with <br> if you want to show the text in a html document.

now I think that pressing enter is not quite the same as hitting the submit. there is a difference, I'm just not remembering what it was :P