[jQuery] Re: Why is the + being turned into a space?

2007-08-27 Thread barophobia
On 8/26/07, Erik Beeson [EMAIL PROTECTED] wrote: The reason this is happening to you when you use ajax is because when you pass a String as the data parameter, it is assumed that it's already escaped. When you don't use ajax, the browser takes care of escaping the + for you (it is escaped as

[jQuery] Re: Why is the + being turned into a space?

2007-08-26 Thread Stephan Beal
On Aug 27, 6:34 am, barophobia [EMAIL PROTECTED] wrote: It would seem that this is PHP's fault since Firebug reports the correct data. But that's why this is so weird. When I take $.ajax out of the loop PHP says that I have submitted [EMAIL PROTECTED]. Our of curiousity, does the $.ajax call

[jQuery] Re: Why is the + being turned into a space?

2007-08-26 Thread Erik Beeson
The reason + gets turned into a space is because your incoming data is being urldecoded (or unescaped) by PHP, and +, just like %20, gets turned into a space. The reason this is happening to you when you use ajax is because when you pass a String as the data parameter, it is assumed that it's