Print Page | Close Window

show textarea line breaks after a post

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=7650
Printed Date: 30 March 2026 at 7:44pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: show textarea line breaks after a post
Posted By: RCorr
Subject: show textarea line breaks after a post
Date Posted: 27 November 2003 at 9:32am
Hello,

I am designing a job-posting site and when the user fills in the application form and clicks submit an email is sent out.  I have two text area tags that require the user to paste his/her cover letter and resume.  When the email is received, the line breaks are ignored and therefore the outcome doesn't look pretty.

I am aware there are sites where one can preview what his or her cover letter and resume will look like one the receiving end.  Does anyone know the steps I need to take or a third party program that format the information?

Thanks in advance for any suggestions.

RCorr




Replies:
Posted By: theSCIENTIST
Date Posted: 28 November 2003 at 6:31am

You can do it in two ways:

  1. On the receiving end, use the <PRE> ... </PRE> that will show everything formatted as it was submitted.
  2. You can also parse the user input before it goes to the database, and replace the default (vbCrLf) by <BR>, do it like this: parsedRESUME = Replace(parsedRESUME, vbCrLf, "<BR>", 1, -1, 1) .. Don't forget to reverse the process for editing.

With the second approach I used the Replace ASP function, not sure which scripting you are using.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net