PHP Classes

urlencode() and urldecode()

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  urlencode() and urldecode()  
Subject:urlencode() and urldecode()
Summary:urlencode() and urldecode() have options?
Messages:3
Author:Mark de Leon
Date:2014-09-27 10:04:29
Update:2014-09-27 11:10:07
 

  1. urlencode() and urldecode()   Reply   Report abuse  
Picture of Mark de Leon Mark de Leon - 2014-09-27 11:10:07
I am successfully sending data with urlencode($Comments) from Page1 over a URL Variable to page 2. This particular field is problematic because it is free form text entry. This text entry is successfully passed via a URL variable to the next page2 where it displays and works perfectly.

On page 2 the user has the option to go back to page 1 and edit the fields where I "GET" the previously. I then try to use urldecode and place the comments back in the free form text box with urldecode($Comments).

The problem I seem to have is that urldecode is still outputting all the <br/>

So is there an option to get urldecode to make these work so the <br/> becomes "return" when I place it back in the text field?

There are 2 replies in this thread, which are not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.