hi frnds,
here i m using AJAX code for posting variables..when i submit the form , then the GET variables are taking like this..
hi%20h%20r%20i
..
how can i solve this problem..
plz go through the code..
//javascript code...
function get(obj) {
var poststr = "name=" +escape(encodeURI( document.getElementById("name").value )) +
"&comments=" +escape( encodeURI( document.getElementById("comments").value )) +
"&id=" + encodeURI( document.getElementById("id").value )+
"&category=" +escape( encodeURI( document.getElementById("category").value ));
makePOSTRequest('comments.php', poststr);
}
$name=stripslashes( mysql_real_escape_string($_POST['name']));
$comments=$_POST['comments'];
$id=$_POST['id'];
$category=mysql_real_escape_string($_POST['category']);
plz solve this one..
Thanks in advance..