DMXzone App Connect Support Product Page

Silly search question...

Asked 13 May 2018 08:50:14
1
has this question
13 May 2018 08:50:14 Reinhardt Ellis posted:
I have a form the uses GET to do a search.

When I then click search.... it renders it like this in the addess bar.

search_results.php?search=Company+Name (All good ... but in app connect when i say CONTAINS... {{$_GET.search}} in the filter it does not work

if I go into the address bar.. and physically remove the + eg... search_results.php?search=Company Name

Then I get the results.....

Is there something I have to do .. or convert the string or how "would" i remove the +

Replies

Replied 13 May 2018 09:18:23
13 May 2018 09:18:23 Reinhardt Ellis replied:
o well .. dont know if this is correct but it worked for me...

<dmx-serverconnect id="SearchResults" url="dmxConnect/api/search.php" dmx-param:search="query.search.replace(&quot;+&quot;, &quot; &quot" ></dmx-serverconnect>

so the query used to be query.search then i replaced it with query.search.replace(&quot;+&quot;, &quot; &quot so it removes the + if you are searching for a multiple word using a form method GET... eg... search_results.php?search=Company+Name

this will then result in search_results.php?search=Company Name for the query.....

Reply to this topic