+ 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
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.
+ 1
where does "demo_post.asp" exist?
are you trying it here on sololearn?
+ 1
demo_post.asp is a server
+ 1
Are you an Asp.Net developer? What backend language is used?
0
I want to send the form to the server in the client
0
No, I use node.js as a backend
0
Hey....you need to learn some things like php or node properly