php - different values for POST value? -


I have a contact edit form.

The entire form is requested through AJAX (a lightbox).

The form is preloaded with contact data.

When you edit the jQuery check for the difference in the form and only returns the converted input.

This works.

}]

Turns it over to production [[\ "name \": \ "FirstName \", \ "value \": \ "James \"}] < / Code>

where additional \ is coming from.

If it helps

localhost = windows, php 5.3 / Output = Linux PHP 5.2

Tell me if you want more code

  var contact = $ (this) .attr ('rel'); $ .facebox ( Function () {$ .ajax ({url: site_url + 'ajax / contact', type: 'POST', data: {id: contact, method: 'editForm'}, success: function (data) {$ .facebox ( Data); $ ('# editForm'). Submit (function () {var data = []; var finalForm = $ (this) .serializeArray (); var for difference = 0; (initialForm in var i) (if (difference> gt; {$ Ajax ('url: site_url +'), 'post', data: {id: final form [0]. Value, method: 'edit communication', data: JSON.stringify (data)}, Success: Function (data) {$ ('#contact' + finalForm [0] .value) .hide ("drop", {direction: 'up'}, 500, function () {$ ('# contact' + final Form [0] .value). Replace (data); $ ('# Contact' + final form [0]. Value). Show ("drop", {direction: 'up'}, 500, function () {$ (document). Trigger ('close.facebox');});}); Return (return);}}}} $ (document). Trigger ('close.facebox'); Returned false;}); $ ('#Ardian'). Adrian (); Initial form = $ ('#E ditForm') serializeArray () .; }}); });    

See you on the development machine, because you are running 5.3.0, they dislike it Are there. They are capable on their production machine. Check them on how to disable them, but be sure to check your code again.

Comments