How to fix these type
<p>I have html data like text including image src.when I alert using jquery it works fine. Entire html is displayed in alert box.And then I want to send that entire html data and text and something's id using quary string of JQuery like:</p>

<pre><code>$.post('something.php','socialprofileid='+socialprofileid+
        '&amp;txtMsg='+msg+'&amp;postedHtmlMsg='+HtmlMsgresult)
</code></pre>

<p>But I need that entire html data including text and id in php page like get html data, text, id in JQuery alert box</p>

<p>I try to use window.btoa function(base64 encoded format) for HtmlMsgresult. After doing base64 encoded format in javascript, when I try to send in php page, it doesn't get any print in php page.</p>

<p>Another thing  is there any solution Text and htmldata(html text and img src) are combined and then it is done the base64 encode.And then it is send in php page using query string like:</p>

<pre><code>if(txtmsg='') {
  var result=window.btoa(htmldata);
} else {
  var content=text+htmldata;
  var result=window.btoa(content);
}
$.post('something.php','socialprofileid='+socialprofileid+'&amp;result='+result)
</code></pre>

<p>Is it possible to do that? </p>

<p>And then I want to insert into database in something.php and then in another page I want to fetch the htmldata and text which are encodded by base64 using jquery. Then it is converted by base64_decode function.</p>

<p>But within text and htmldata, How to extract text , htmltext, htmlimgsrc differently from the database table.</p>

<p>If u know about these type of problems, please reply me
I need your hand
Thank you</p>
