+ 3
How to link php file to this normal chat bot so that when I click send it will show the message was .. ?
I tried but it won't work. Please let me know what to do here.I am attaching code for reference. https://code.sololearn.com/W810jMEpP4F5/?ref=app
4 Respostas
+ 3
You cannot send a form request to a file located in Dropbox, your Dropbox won't run the Php file, for Dropbox it's just a normal file, you need to host the file on a server , and the Php file needs to accept a cross origin header, and you need to use ajax, or fetch api using javascript, and headers "Content-Type": "application/json", "X-Requested-With": "XMLHttpRequest" should be used,
+ 2
Мг. Кнап🌠 as I said I don't know what it do ,I used fetch api to get data from file that way as someone suggested me when I was getting some error
+ 1
I changed the action src to this
https://dl.dropbox.com/s/72fjnbqx0trs05i/Php%20data%20storer.php?"
And don't ask me how it works i had a similar problem getting data from file uploaded on Dropbox and someone suggested me to do that ,still don't know what it do but I was directed to this page after sending message "hi"
https://dl.dropboxusercontent.com/s/72fjnbqx0trs05i/Php%20data%20storer.php?%22=
0
Abhay so you mean we can send data and get response back using dropbox on a Php file?