[ic] Problem re-using search data containing spaces

Ed LaFrance (New Media E.M.S.) ic_users at newmediaems.com
Mon Oct 11 10:17:36 EDT 2004

At 06:20 AM 10/11/2004, you wrote:

>I have a one-click search on my product page to allow users to easily search
>for more products by the same publisher:
>     Search: [page search="
>                 sf=publisher
>                 se=[item-field publisher]
>                 ml=20
>                 tf=title
>                 su=1
>             "][item-field publisher][/page]
>After this search is issued, there is a drop-down form box on the results
>page where users can chose to re-sort the data by another field.
>     <form action="/cgi-bin/bookshop/search.html?id=..." method="GET">
>     <input type=hidden name=mv_session_id value="...">
>     <INPUT TYPE=hidden NAME=mv_searchtype VALUE=db>
>     <INPUT TYPE=hidden NAME=mv_matchlimit VALUE=20>
>     <input type=hidden name=mv_substring_match value=1>
>     <input type="hidden" name="mv_search_field" value="publisher">
>     <input type="hidden" name="mv_searchspec" value="Penguin%20Books">
>     <select name="mv_sort_field" size="1">
>        <option value="title">title</option>
>         <option value="author" selected>author</option>
>         <option value="publisher">publisher</option>
>         <option value="category">category</option>
>     </select>
>     <input type="submit" name="submit" value="Go">
>     </form>
>However, if the 'publisher' name contains a space, the space is converted to
>a '%20' - which then seems to be changed to '%2520' when the re-sort search
>is issued.
>So the search returns no matches and the 'GET' url contains
>I would be grateful if someone could offer any advice on how I could prevent
>the '%20' from being converted to '%2520'.
>Or should I be looking to remove the initial '%20' from the hidden form
>field in the drop-down list search?
>I am currently running Interchange 5.0
>Many thanks

You posted the parsed HTML of the searchbox, but what does the ITL look like?

- Ed

New Media E.M.S.              Technology Solutions for Business
11630 Fair Oaks Blvd., #250   eCommerce | Consulting | Hosting
Fair Oaks, CA  95628          Ed.LaFrance at newmediaems.com
(916) 961-0446                http://www.newmediaems.com
(866) 519-4680 Toll-Free      (916) 961-0447 Fax

More information about the interchange-users mailing list