astralaaron Posted October 5, 2010 Share Posted October 5, 2010 I have a form that needs to be converted to AJAX instead of reloading the entire page. On part of the form, people will be typeing & signs and + signs.Currently I only use GET requests with AJAX and am having trouble sending them across. should I change to POST or is there a way to encode them with JS before sending? Link to comment Share on other sites More sharing options...
astralaaron Posted October 5, 2010 Author Share Posted October 5, 2010 Hi I just wanted to post a link to this site http://xkr.us/articles/javascript/encode-compare/ the answer and some good information is there ( encodeURIComponent() )works for me. I haven't tried decoding it in PHP yet. But it looks like no problem. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.