[thelist] Textarea, hard returns, ASP, and CDOSYS

Tarrant Costelloe taz at madfolk.com
Wed Oct 22 16:45:38 CDT 2003

Is this of any help to you?

Function cleanString(inputField)
	If (len(inputField)>0) then 
		inputField = Replace(inputField,chr(10),"")
		inputField = Replace(inputField,chr(13),"")
		inputField = trim(inputField)
	End If 
	cleanString = inputField
End Function 

Tarrant Costelloe
Technical Director
madfolk.com (.co.uk) - Reforming Media 
(+44) 01903 523414.

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Tab Alleman
Sent: 22 October 2003 20:07
To: thelist at lists.evolt.org
Subject: [thelist] Textarea, hard returns, ASP, and CDOSYS

I've got an html form that has a textarea field where users type the
body of an email message.

I've got an ASP script that processes the form and sends the email using

When the email arrives, the (hard) carriage-returns entered by the user
are gone.  It's all one block of text with no blank lines.  

I've tried a few different things with the wrap="" parameter of the
textarea, and by REPLACE()-ing "\n" with Chr(10) in the ASP script, but
all to no avail.

Does anybody here know the best way to get hard returns entered into a
text field to translate into vbCrLf's in an ASP script?

* * Please support the community that supports you.  * *

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 

More information about the thelist mailing list