I want to change file (file.txt) located on my website.
I use AJAX command:
On space pressed --------> Send Text.text to url"url/send.php" (method Post,tag "savedata").
PHP file on the website:
$data = $_POST['data'];
The content of the file.txt doesn't change.
It seems to me the Data is not transferring properly. What is wrong in the code?