Not working *sob sob*.
These are precisely what I tried..........
<A HREF="SameSurname.cfm?Sur=#URLEncodedFormat("Sur")#>
(#SameSur.RecordCount# Customer(s) with same surname)
</A>
or
<A HREF="SameSurname.cfm?Sur=#URLEncodedFormat("#Sur#")#>
(#SameSur.RecordCount# Customer(s) with same surname)
</A>
or
<A HREF="SameSurname.cfm?Sur=#URLEncodedFormat('#Sur#')#>
(#SameSur.RecordCount# Customer(s) with same surname)
</A>
All of the above produce only a blank space on the screen where a link
should be.
Sur is a surname i.e. a text string.
The result is the same even when I directly write an actual surname (which
exists in the Db) in place of "A Text String".
---------------------------------------------------
> 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/