Passing Value Including Spaces on Ajax Call

后端 未结 3 1072
眼角桃花
眼角桃花 2021-01-18 15:04

Trying to pass spaces along with ajax call.

\'word\' is been passed the same as \'word \' i believe so.

On the other hand two words need to be send completel

3条回答
  •  悲哀的现实
    2021-01-18 15:38

    The simplest way, I think, is to encodeURIComponent string in javascript before sending xmlhttprequest, and then urldecode it in PHP

提交回复
热议问题