badly needed help

Started on the old forum in March 2013 · view the original in the archive · old links redirect here

5 replies · 593 views · started 13 years ago · 1 min read

5 participants
baki Newbie · 9 posts #3

thanks but users ussually search with spaces..

CreativityKills Lead · 833 posts #4

baki wrote: i have mp3 search site and when searching files with space theres no results found.. when searching 'florida whistle' give me this result http://www.mydomain.com/search.php?q=florida%20whistle my question is how to make url become like this http://www.mydomain.com/search.php?q=floridawhistle

I don't understand why you would want to do this. But its virtually impossible except with the help of JS. However, you can use your usual $_GET global to get the query and substitute spaces with null. That's a server side solution.

srb Newbie · 5 posts #5

$searchString=$_GET['search'];

$searchString= str_replace(" ","",$searchString);

Lue_chin Developer · 107 posts #6

baki wrote: i have mp3 search site and when searching files with space theres no results found.. when searching 'florida whistle' give me this result http://www.mydomain.com/search.php?q=florida%20whistle my question is how to make url become like this http://www.mydomain.com/search.php?q=floridawhistle

brother you have to add a function urlencode and decode its helpful for you search on Google and if this function is works say thanks to me

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close