receiver19 Posted May 21, 2009 Share Posted May 21, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.