> Again, you must do a strpos() or whatever string locator function of PHP
> to
> extract out the unencoded URL.
Can someone please help me out here as this is urgent. Can someone show me an example of what he’s telling me to do please, im going crazy, I’ve now been working 12hrs coding and just need some help on this please.
Your code encodes the entire URL. What I think your client is pointing out, is that you only want to encode the text after the question mark sign like this:
In example #2, you will see they use urlencode just on the value part of the get param. If you wanted to go this route you could do something along the lines of: