Connecting Tech Pros Worldwide Forums | Help | Site Map

Pass HTML code from one page to another

Member
 
Join Date: Jan 2007
Posts: 47
#1: Jun 24 '08
Hi there,

I would like to pass HTML code from one page to another. As with parameters, I would like to use "input type=hidden".... But somehow the HTML must be encoded, otherwise my whole page sucks. Is there an easy way to do that?

Thanks for any suggestions!

hsriat's Avatar
Expert
 
Join Date: Jan 2008
Location: Bath, UK
Posts: 1,609
#2: Jun 24 '08

re: Pass HTML code from one page to another


Post your code what you are using right now. I could not figure out how are you doing this. With PHP or JS?
Member
 
Join Date: Jan 2007
Posts: 47
#3: Jun 24 '08

re: Pass HTML code from one page to another


Puh.... urlencode resp. urldecode seems to be the solution....
ak1dnar's Avatar
Moderator
 
Join Date: Jan 2007
Location: Colombo
Posts: 1,440
#4: Jun 24 '08

re: Pass HTML code from one page to another


Quote:

Originally Posted by luftikus143

Puh.... urlencode resp. urldecode seems to be the solution....

Could you please post the solution you found. then most of us can learn from that.

--Thanks
Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Posts: 3,751
#5: Jun 25 '08

re: Pass HTML code from one page to another


I would suggest htmlentities and html_entity_decode.
Reply