In my HTML-file, I give a value via GET to a php. The value is the following: 'var1$var2'.
In my URL, there is shown the following:
/phpmethod.php?q=var1%24var2
I looked up $ in the ASCII table and found out that it has the number 24.
I also tried it with adding
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
to the html but it´s the same result.
How can I solve that?
Use urldecode to transform the value back to the posted value.
Usually, you wont need these – your
$_GETand$_POSTwill already be decoded, and will contain thevar1$var2just like the user entered them.