Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - show textarea line breaks after a post
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

show textarea line breaks after a post

 Post Reply Post Reply
Author
RCorr View Drop Down
Groupie
Groupie


Joined: 21 January 2003
Status: Offline
Points: 126
Post Options Post Options   Thanks (0) Thanks(0)   Quote RCorr Quote  Post ReplyReply Direct Link To This Post Topic: show textarea line breaks after a post
    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

Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post 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.



Edited by theSCIENTIST
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.