Ampersand in a list viewer

3 posts by 2 authors in: Forums > CMS Builder
Last Post: October 6, 2010   (RSS)

Re: [jtedescojam] Ampersand in a list viewer

By Jason - October 6, 2010

Hi,

What you can do is use a function called urlencode to encode your category name. This will turn the ampersand into a form that the server will recognize and text and not a separator.
The code would look something like this:

<a href="http://ultimatesportsamerica.com/coaches/?sports_category=<?php echo urlencode($record['category']);?>">TEXT FOR LINK</a>

You'll have to change $record['category'] to match what you're using on the page.

Hope this helps. Let me know if you run into any issues.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Ampersand in a list viewer

By jtedescojam - October 6, 2010

thank you
John Tedesco

Creative Director



JAM Graphics