$.ajax({
url: 'processing.php',
type: "POST",
data: "title="+title+"&message="+msg,
success: function(data){
//Do stuff here
}
});
The data that I am posting can sometimes have ampersands in them.
An example would be
title=white & blue&message=these are colors
The problem is that because of the ampersand blue is being treated as a new variable and not part of a string. How can I safely post the variables that I need to post without them being broken up?
I have tried escape() but when I try to undo the escape on the php side it can't do it successfully.
Thanks

New Topic/Question
Reply



MultiQuote






|