Hello there, PHP Maister.
My challenge is making users search in a form on my website, and have that search "pasted" into the correct URL of the site they want to search on.
Take a look: http://zkole.com.
I found some info in some older post here, which made it possible for me to go this far (at the moment of writing, only the britannica search is coded).
Well, I figure the following has to be done:
- Getting the URL set-up for each search correct.
- Then pasting the search into the URL format.
The problem is, one-word strings are fine, but what happens when people enter multi strings? Actually, in the case of Britannica, it worked out automatically. The space between the words (can I call them variables), became a %20 or something. But if I were adhering to Britannica's normal standard, it would have to be a +. Even tho it worked out with Britannica, doesnt mean it will work out with all the search enginges.
So, how do I break (format) the search string into individual variables to then seperate them with & or + or whatever the search engine may use?'
Regards,
Stig Eidissen