Use URLEncodedFormat() to preserve the spaces (and other 'weird'
characters):
<CFHTTPPARAM NAME="Subject1" TYPE="FormField"
VALUE="#URLEncodedFormat(form.subject)#">
Erki
----- Original Message -----
From: "Ficke, Bill" <[EMAIL PROTECTED]>
To: "Fusebox" <[EMAIL PROTECTED]>
Sent: Friday, December 15, 2000 5:34 AM
Subject: CFHTTP / CFHTTPPARAM stripping out spaces and hard returns?
> Has anyone else experienced spaces being stripped from form fields when
> using CFHTTP/CFHTTPPARAM? Here is a copy of my code. All hard
returns,
> and EVERY space was stripped from the subject and message.
>
> Any ideas?
>
> <CFHTTP METHOD="POST" URL="http://localhost/syspro/faultadmin/mail.asp"
> throwonerror="Yes">
> <CFHTTPPARAM NAME="TOList1" TYPE="FormField" VALUE="#Evaluate(TOLIST)#">
> <CFHTTPPARAM NAME="CCList1" TYPE="FormField" VALUE="#Evaluate(CCLIST)#">
> <CFHTTPPARAM NAME="From1" TYPE="FormField" VALUE="#form.from#">
> <CFHTTPPARAM NAME="Subject1" TYPE="FormField" VALUE="#form.subject#">
> <CFHTTPPARAM NAME="Message1" TYPE="FormField" VALUE="#form.message#">
> </cfhttp>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists