+ 1

Send input information

Hi, how to send input information with javascript. I wrote everything but there is one case that can not send accurate input information. Please help and tell how to send information https://code.sololearn.com/WbBDUBgoO6rw/?ref=app

21st Sep 2020, 7:11 AM
aamiiin
aamiiin - avatar
7 Réponses
+ 1
Ok, I evaluated your code and realized that the onclick call is wrong, it should be onclick = "loadDoc ();". In addition, for your code to work correctly, you will need a back-end page to receive the form data, that is, the demo_post.asp page must be available on the server. That said, I recommend that you research the FormData () and Fetch methods better to perform the requested task. Recommended: Try to resolve first with research above before proceeding to the solution abaixo. P.S .: I made the necessary modifications for the operation of your code, available at: https://code.sololearn.com/WHjbHBFUXRjN Good luck.
21st Sep 2020, 2:02 PM
Lauany Reis da Silva
Lauany Reis da Silva - avatar
+ 1
where does "demo_post.asp" exist? are you trying it here on sololearn?
21st Sep 2020, 1:17 PM
Bahhaⵣ
Bahhaⵣ - avatar
+ 1
demo_post.asp is a server
21st Sep 2020, 1:40 PM
aamiiin
aamiiin - avatar
+ 1
Are you an Asp.Net developer? What backend language is used?
21st Sep 2020, 2:10 PM
Lauany Reis da Silva
Lauany Reis da Silva - avatar
0
I want to send the form to the server in the client
21st Sep 2020, 1:40 PM
aamiiin
aamiiin - avatar
0
No, I use node.js as a backend
21st Sep 2020, 3:23 PM
aamiiin
aamiiin - avatar
0
Hey....you need to learn some things like php or node properly
24th Sep 2020, 2:14 PM
Spacice
Spacice - avatar