[jQuery] .post trouble
[jQuery] .post trouble
Hi.
I have a problem with .post().
I try to send this str:
date=19.11.2008&title=Input title&description=Input
description&keywords=Input keys&body=Test
</
p>
ggggggggg
post function:
$.post("http://bla-bla/post.php",
str,
function(data){
$("#answer").html(data);
}
);
This part of post.php:
<?php
$body = $_POST['body'];
print "Main body: " . stripslashes($body) ."
";
?>
If in variable "body" exist "
", then all the remaining
data in variable "bode" will not transferred or will not appear
(ggggggggg
in my example).
When I remove "
", then everything OK.
That this can be and how resolve this?
Thank for your help.