Ciao.
Se spedisco i dati con questo codice:
Codice PHP:
var titleValue= trim($('ajax-cat-insert-title').value);
var data= {catTitle:encodeURIComponent(titleValue)};
var postVar= 'cat_title='+encodeURIComponent(json_decode(data));
xhr.connect('ajax-new-category.php','POST',postVar,insertResponse);
con una stringa del genere
se non uso urldecode nel DB
(category_title varchar(100) utf8_general_ci)
mi ritrovo una stringa del genere
%3F%C3%A8%C3%A0%C3%B2%25%26%3Dstring
mentre se i dati li spedisco con il
metodo normale la stringa rimane
invariata.
Mi potete spiegare perchè ?
Con encodeURIComponent si deve usare urldecode ?