Getting post data from ajax request php

contentType: 'application/json'

is wrong. You aren’t sending JSON. This will confuse the server. Just remove that line and it will work fine.

(Also crossDomain: true almost certainly isn’t needed here (and probably doesn’t do whatever you think it does)).

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top