ajax - Getting in PHP a javascript encodeURIComponent POSTed data -


i writing php-javascript-ajax based application sends form in ajax synchronous request using post method php script.

i used encodeuricomponent() function in javascript on each data before sending it, build correct form request in form

encodedname1=encodedvalue1&encodedname2=encodedvalue2 - - - , on 

when data on server side, via $_post['encodedname1'], data decoded, , not need use urldecode(). have seen many questions on , other forums how decode data back, , wondering why people asks such question if php gets data decoded (as confirmed in post here: ajax post , plus sign ( + ) -- how encode?). there critical issue miss or don't know?

also, happens if pass in post request unencoded characters, use delimiters between datasets, let's "#"? possible received data may corrupted, and/or "#" delimiter lost? have security issues? example:

a11=v11&a12=v12#a21=v21&a22=v22- - - , on 

detail: charsets utf-8 without bom, in files (.php, .html, .js)


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -