[SOLVED] How to send a form to a address in JavaScript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

[SOLVED] How to send a form to a address in JavaScript?

I tried to send a text to port 8080 on my machine from a webpage created by me, but I can't seem to figure out how... I'm using 'nc -l -p 8080', thanks to anyone who can provide a syntax...

7th May 2021, 8:44 PM
Cucurigu19 Cotcodac
Cucurigu19 Cotcodac - avatar
3 Answers
+ 3
in the form tag in the action attribute write the address you want to send the request to example: <form action=“form.js” method=“post”>.....</form>
7th May 2021, 9:41 PM
Nima
0
Thanks a lot, managed to do it with PHP!
8th May 2021, 10:53 AM
Cucurigu19 Cotcodac
Cucurigu19 Cotcodac - avatar
0
You can achieve this by using post method you need mention it into your form. <form action="/", method="post"> </form> After that drive it using js in your root file like app.js
8th May 2021, 5:56 PM
Rahul Singh
Rahul Singh - avatar