Hi,
I'm having a few problems on working out how to do this. (PHP)
My script gets passed a search varaible which is typed in by the user.
The script returns something like;
books+cars+hotrods
This then needs to be converted to a variable I can uses as a file reference - which can be done by str_replace ("+","/" $variable);
however: I can't work out how to change the incoming variable to the correct format if the input is something like:
+books++++++cars+++hotrods++
Anyone know how I can always convert something like the above to:
books/cars/hotrods
Cheers!!
<Edited by ChilliBoy on 01-12-2001 at 08:18 AM>






Bookmarks