Andrew,

I would suggest using the URLEncodedFormat(string) function when passing
strings in the URL.

URLEncodedFormat "Returns a URL-encoded string. Spaces are replaced with
%20, and nonalphanumeric characters with equivalent hexadecimal escape
sequences. The function lets you pass arbitrary strings within a URL,
because ColdFusion automatically decodes URL parameters that are passed to
the template. "

i.e.

<cfoutput>
 ... 
 program.cfm?sometext=#URLEncodedFormat("A text string")#
 ...
</cfoutput>

cheers

David

-----Original Message-----
From: Andrew Dickinson [mailto:[EMAIL PROTECTED]
Sent: Thursday, 20 March 2003 9:19 AM
To: CFAussie Mailing List
Subject: [cfaussie] How to parse text as a parameter in a URL


I asked this question as part of another post, but no-one replied to this
part of the question :

Is there anything different which needs to be done, in order to parse text
as a parameter in a URL ?

e.g. 

program.cfm?loanID=#loanID# where loanID is a number

How to change if LoanID is a string ?

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to