Skip to content
Advertisement

Ajax request to php with empty POST data

I am new to javascript and I have problem with an ajax POST to php.

I am trying tosend javascript variables to php via an ajax POST but it doesn’t work.

The ajax post is sent but it sends empty POST. I got alert “Error occured ! 202” when trying to save data to bdd.

Thanks in advance for helping me.

here are my javascript and php codes :

JavaScript

Advertisement

Answer

ok so the solution is :

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