tags:

views:

26

answers:

1

i want to pass & sign in text via ajax to php file

i use encodeURIComponent() like that

url: "add_process.php",
data: "title="+ encodeURIComponent(title) +"& stages="+ values1,
success: function(html){

but when i execute this, all data after & sign is truncated and don't save in database.

Thanks

A: 

Try remove the space you have here:

"& stages="

like this:

"&stages="
RichieHindle