What is URL encoded?

What is URL encoded? How can I get it?
portal123Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Ivo StoykovConnect With a Mentor Commented:
Hello portal123,

Returns a string in which all non-alphanumeric characters
you coud use
string urlencode ( string str ) and
string urldecode ( string str )

here is a sample

<?php
$a = explode('&', $QUERY_STRING);
$i = 0;
while ($i < count($a)) {
   $b = split('=', $a[$i]);
   echo 'Value for parameter ', htmlspecialchars(urldecode($b[0])),
        ' is ', htmlspecialchars(urldecode($b[1])), "<br />\n";
   $i++;
}
?>

Regards,

!i!
0
 
Aamir SaeedConnect With a Mentor Commented:
a convenient way to pass variables to the next page

http://www.php.net/urlencode
http://www.w3schools.com/tags/ref_urlencode.asp
0
All Courses

From novice to tech pro — start learning today.