i’m trying to send data via GET and one of the fields has the sign # in it (sometimes more than once).
Is there a way to encode or escape the # in the GET so i can be able to send all my fields with GET ? (i can only send my data via GET, i’m not allowed to use POST)
thanks
If you have to send this field to PHP via
GET(i.e. through AJAX) form the client side, use javascript’sencodeURIComponent();.Else if you need to make a
GETrequest from your server to another server, useCURL, it will do the encoding for you.And in the case that you just want to output a hyper reference (link) then use the other answers provided (now deleted, referenced this).