Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with <textarea> and vbscript

Status
Not open for further replies.

ncar35b

Technical User
Jan 10, 2003
55
US
Hello, when I use the HTML <textarea> input field in a form, any of the carriage returns are removed when a user hits submit. When I query the form on the subsequent APS page, the line spacing is gone and the results become a jumbled mess. Does anyone know how to keep the line spacing intact?
 
2 questions:
Are you using a form with method = post?

If you are,

Have you tried pre-processing the form by applying the javascript escape() function?

If you're doing both to no avail, you'll need to write a javacript function that replaces carriage returns (use google to get key code) with text you specify i.e. _CARRTN_ and then do the inverse on the other end.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top