In your receiving script (or called script), you should DECODE what has been received and not ENCODE.
urlencode() needs to be on the page that has the link that was clicked on (the sending page).
urldecode() needs to be on the page that is being called by that click (the receiving page).
Okay... so the user types in ?url=www.blahblah.com , it gets recieved by the script and does something with it, BUT when there are characters like # etc. in the URL it gets all screwed up, so i should DECODE the ?url= input?? Kinda odd because i didn't encode anything lol..
Tried it and that works, but of course the user has to know that '#' is '%23'... which isn't likely... maybe it can be done with JS to automatically convert' #' into '%23' ? Just a thought because my knowledge of JS is pretty much none existent.