Jump to content

About urLdecode and rawurldecode


receiver19

Recommended Posts

I have tried following coding:

 

<?php echo urlencode($action[0]).'<br/>' ;?>
<?php echo urldecode($action[0]).'<br/>' ;?>
<?php echo urlencode(rawurldecode($action[0])).'<br/>' ;?>
<?php echo rawurldecode(urlencode($action[0])).'<br/>';?>
<?php echo rawurldecode($action[0]).'<br/>';?>
<?php echo $action[0].'<br/>'?>
<?php echo urldecode($action[0]).'<br/>' ;?>
<?php echo urldecode(rawurldecode($action[0])).'<br/>' ;?>
<?php echo rawurldecode(urldecode($action[0])).'<br/>' ;?>
<?php echo urldecode(rawurlencode($action[0])).'<br/>' ;?>
<?php echo urldecode(rawurldecode($action[0])).'<br/>' ;?>
<?php echo rawurldecode($action[0]).'<br/>' ;?>

 

 

the following are the outputs:

cpl198+publisher%40gmail.com

cpl198 [email protected]

cpl198+publisher%40gmail.com

[email protected]

cpl198 [email protected]

cpl198 [email protected]

cpl198 [email protected]

cpl198 [email protected]

cpl198 [email protected]

cpl198 [email protected]

cpl198 [email protected]

cpl198 [email protected]

 

I want it to be display as cpl198%[email protected]. $action[0] is a email address that from url using GET method. etc: http://.../0/cpl183%2B@gmail,com

 

Do you have any idea for solving this question?

 

Thank you.

Link to comment
https://forums.phpfreaks.com/topic/159073-about-urldecode-and-rawurldecode/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.