Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy "space" is not supported in the ajax post method?
    primarykey
    data
    text
    <p>Below is my html</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=windows-1252"&gt; &lt;title&gt;New Page 1&lt;/title&gt; &lt;script type="text/javascript"&gt; function Data_Check() { var xmlHttp; try { xmlHttp=new XMLHttpRequest(); } catch (e) { try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } } xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { alert(xmlHttp.responseText); } } var RES = document.getElementById("Remarks").innerHTML; var params ="RES="+RES; xmlHttp.open("POST","Data_Check.asp",true); xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlHttp.setRequestHeader("Content-length", params.length); xmlHttp.setRequestHeader("Connection", "close"); xmlHttp.send(params); } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;textarea id="Remarks" rows="5" name="Remarks" cols="79" style="font-family: Arial; font-size: 11px"&gt;please, accept my submit form.&lt;/textarea&gt; &lt;br&gt; &lt;img id="Submit" onclick ="return Data_Check();" border="0" src="submit.png" width="145" height="28"&gt; &lt;/body&gt; &lt;img &lt;/html&gt; </code></pre> <p>Here i facing the problem is,</p> <p>When i submit "Remarks" textarea innerhtml to my "Data_Check.asp" </p> <pre><code>&lt;% RES = Request.Form("RES") %&gt; </code></pre> <p>and this remarks save in my sql database.( database field is "Remarks_text" and datatype is "text")</p> <p>In the data base textarea data is read ("please, accept my submit form.") textarea data with out space.</p> <p>like this <strong>please,acceptmysubmitform.</strong></p> <p>I need to save <strong>please, accept my submit form.</strong></p> <p>hoping your support</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload