Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 152
  • Last Modified:

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?
0
phillystyle123
Asked:
phillystyle123
  • 3
  • 3
1 Solution
 
CFDevHeadCommented:
Try  using
<cfset myUrl = HTMLCodeFormat(#ListGetAt(Lst_Eventname,ListFindNoCase(Lst_CalendarDay,i_day,'~'),'~')#)>
<cfoutput>
<a href="event.cfm?Eventnamea=#myUrl#>#ListGetAt(Lst_Eventname,ListFindNoCase(Lst_CalendarDay,i_day,'~'),'~')#</a>
</cfoutput>
0
 
CFDevHeadCommented:
any luck
0
 
phillystyle123Author Commented:
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.  
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
CFDevHeadCommented:
wrong function use this instead HTMLEditFormat
0
 
phillystyle123Author Commented:
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!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now