I’m looking for some PHP code to enter a search string into a URL. It should take spaces into account. The endresult for the term ‘philips led’ should be:
http://www.someurl.com/nl/product.nsf/queryreviews?readform&qcode=0&q=philips+and+led&pcode=0&gq=philips%20led
Script is already in place, it uses this format for other search actions:
header("Location: http://www.someurl.com/search.php?&q=" . stripslashes($_POST["input_text"]));
So I guess it should look a bit like that only smarter
Any thoughts?