Skip to content
Advertisement

Post array with Ajax but PHP gets string

I’m posting several variables from Ajax to PHP and one of them is an array. However PHP sees a string instead of an array. I can’t figure out what’s wrong.

Ajax string seen in Firefox Dev console:

Form data:

JavaScript

Request payload

JavaScript

PHP:

JavaScript

Outputs:

JavaScript

Using Multi-select plugin for TableEdit and Jquery-multi-select

What am I missing?

Advertisement

Answer

Thanks to @u_mulder comment I fixed the issue by modifying the code provided on Github for jquery-tabledit line 140.

I changed

JavaScript

Into

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement