Link to home
Start Free TrialLog in
Avatar of phillystyle123
phillystyle123Flag for United States of America

asked on

passing text string parameters

i'm using a calendar app with an administrative interface.  even though i know it would be desirable to use numeric values  i don't want to spend much more time developing the admin interface i need to find a way to pass along text strings that won't fail. for example i'd love to use this:

<a href="event.cfm?Eventname=<CFOUTPUT>#ListGetAt(Lst_Eventname,ListFindNoCase(Lst_CalendarDay,i_day,'~'),'~')#</CFOUTPUT>"><cfoutput>#ListGetAt(Lst_Eventname,ListFindNoCase(Lst_CalendarDay,i_day,'~'),'~')#</cfoutput></a>

but this Eventname doesn't show up on my results page:
http://redcatweb2.org/calendar/event.cfm?Eventname=Full Spectrum Animation &#8211; The Art of Motion: A Film Series Produced By EAARC

however this Eventname does:
http://redcatweb2.org/calendar/event.cfm?Eventname=Independent Los Angeles: A Festival of Independent Filmmakers Los Angeles

any ideas how to tighten this up a bit so it always works?
ASKER CERTIFIED SOLUTION
Avatar of CFDevHead
CFDevHead

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CFDevHead
CFDevHead

any luck
Avatar of phillystyle123

ASKER

hi CFDevHead,

http://redcatweb2.org/calendar/event.cfm?Eventname=<PRE>Bach&#8217;s%20Circle:%20Bach%20and%20the%20Avant-Garde</PRE>

is what i'm getting when using your code. not working but at least i'm not getting an error.  
wrong function use this instead HTMLEditFormat
CFDevHead - i think what we're looking for is

urlencodedformat - this is what my code (that now works!) looks like:

<cfset myUrl = urlencodedformat(#ListGetAt(Lst_Eventname,ListFindNoCase(Lst_CalendarDay,i_day,'~'),'~')#)>
<cfoutput>
<a href="event.cfm?Eventname=#myUrl#">#ListGetAt(Lst_Eventname,ListFindNoCase(Lst_CalendarDay,i_day,'~'),'~')#</a>
</cfoutput>

thanks for the help!