How can I send data to the server via HTML?


I just started with Html and I want to send some input info collected from the front end to my server. The source I’m learning from is very blunt on this point. How can I do this?

>Solution :

Use an HTML form.

<form action="" method="post">
  <label for="full-name">Full Name</label>
  <input type="text" id="full-name" name="full-name" placeholder="Your Full Name" required autocomplete="name" />
  <button type="submit">Submit</button>

Leave a Reply Cancel reply