I am posting variable using similar to this:
<a href = \"index.php?category=Dogs & Cats\">
When the url comes thru, it looks similar to this:
index.php?category=Dogs%20&%20Cats and my code of $cat = $_GET['category'] returns $cat as 'Dogs' and misses out on the rest!
What normally happens, is my site then goes thru the database, and retrieves any entries with Dogs & Cats in it, except, the & is breaking the search.
If I were to do a search on a category without an &, IE:
<a href = \"index.php?category=Dog Biscuits\">
then it comes out index.php?category=Dog%20Biscuits and it works a treat, but I HAVE to have the & in the url.
How can I overcome this? All my database entries (nearly 4500 of them) have an & in them!
Thanks so much, I really appreciate your time and help