+ 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

1st Sep 2020, 1:10 PM
shubham kumar
shubham kumar - avatar
4 odpowiedzi
+ 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,
1st Sep 2020, 1:35 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 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
1st Sep 2020, 1:53 PM
Abhay
Abhay - avatar
+ 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=
1st Sep 2020, 1:45 PM
Abhay
Abhay - avatar
0
Abhay so you mean we can send data and get response back using dropbox on a Php file?
1st Sep 2020, 1:51 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar