passing by url (get method)
How would I go about it if I wanted to pass a variable (artist) that contained a value with & in it, along the url?
I think that's what giving me a problem here, that the value is not read any further than to the & symbol in the middle of it.
In this case the value is Billy Bragg & Wilco, and I dont think it reads the Wilco bit, hence I'm not getting the right results.
One option is of course to use partial matching with sql (like), but I was wondering if there's something else I could do. I can't change the name of the artist because its stored in the database.
I also cant use post method because I'm not atually submitting a form..
Here's what the URL looks like:
PHP Code:
/data.php?kat=1&artist=Billy%20Bragg%20&%20Wilco&aid=287