Skip to content
Advertisement

I use ajax to send data but cannot receive data back from php file [closed]

This function will get the value from the input and sent data with ajax to another php file. But I cannot get the result back from php file when I echo and store in ajax success function result.

JavaScript

Below code will be in another file such as edit.php.

JavaScript

Advertisement

Answer

Your edit.php should be this:
You should use $_POST instead of $POST_

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