nomenclature sending form URL

1

Sending a form, the result of the url sent is this:

search.php? checkin = 22% 2F12% 2F2017 & checkout = 10% 2F01% 2F2018

I would like it to look like this:

search.php? checkin = 16/08/2017 & checkout = 25/08/2017

In your opinion, what is the best way to do it?

    
asked by anonymous 23.06.2017 / 17:03

2 answers

0

There is no "best way" as this is already the correct format.

This is called "url encoded".

In the backend, PHP for example, decode with the urldecode () function if needed.

    
26.06.2017 / 08:19
-1
In the Uniform Resource Locator (URL), an Internet address percent encoding is used to prevent misinterpretation of special characters such as spaces, parentheses, and other symbols. The Web browser parses the location address and encodes / decodes the special characters so that everything works properly. The use of percent encoding is required in cases of non-printable characters, non-standard ASCII characters, characters reserved for the syntax of a URL ("$", "&", "+", ",", / ",": ","; ","=","? "," @ "), and unsafe characters that can fool a URL (space,"
23.06.2017 / 18:18