I\'m using jQuery.ajax to extract form data from a page, and send it to my database (via another PHP page).
The form information is collected by:
var
You can use escape function of JavaScript
var data='varx='+escape(X)+'&vary='+escape(Y);