There are different ways of sending data via http, a common option is to use html forms.
<form method="POST">
<label for="name">Name:</label><br>
<input type="text" id="name" name="name"><br>
<label for="age">Age:</label><br>
<input type="text" id="age" name="age">
</form>