I have an URL in which parameter pass is urlencoded:
http://ipaddress/userandpass.php?user=test&pass=145Red#321OK
In order to decode this param I have tried to use urldecode and rawurldecode and utf8_decode(urldecode())
but without succes.
My code looks like this:
if(isset($_GET["pass"]) && $_GET["pass"] != ""){
$pass=urldecode($_GET["pass"]);
}
Do you have any ideas about how could I solve this issue ?
just use
if(!empty($_GET["pass"]))
{
$pass= $_GET["pass"];
}
http://www.test.com/index.htm?name1=value1&name2=value2
QUERY_STRING
environment variable.$_GET
associative array to access all the sent information using GET method.