What is HTML Forms?
A webform, web form or HTML form on a web page allows a user to enter data that is sent to a server for processing. Forms can resemble paper or database forms because web users fill out the forms using checkboxes, radio buttons, or text fields.
What is Netlify?
Netlify is a San Francisco-based cloud computing company that offers hosting and serverless backend services for web applications and static websites.
Ways to deploy on Netlify?
- Using repositories from Github
- Using and designing a template from Scratch
- Manual Deploy
What are Netlify forms?
Netlify comes with built-in form handling that’s enabled by default. Our build bots do it by parsing your HTML files directly at deploy time, so there’s no need for you to make an API call or include extra JavaScript on your site.
Things needed to parse
data-netlify="true"
method="POST"
Here's a sample code
<p>
<label>Your Name: <input type="text" name="name" /></label>
</p>
<p>
<label>Your Email: <input type="email" name="email" /></label>
</p>
<p>
<label>Your Role: <select name="role[]" multiple>
<option value="leader">Leader</option>
<option value="follower">Follower</option>
</select></label>
</p>
<p>
<label>Message: <textarea name="message"></textarea></label>
</p>
<p>
<button type="submit">Send</button>
</p>
</form>
Preview of a Response
rate1 rate2 rate3 rate4 rate5 rate6 rate7 rate8 rate9 yes no toobad bad avg good superb ip user_agent referrer created_at
rate7 yes superb 2401:4900:1c20:7aff:9553:3d26:3b9c:3d06 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36/3ksI6CtQ-58 https://relaxed-noether-8dfe87.netlify.app/ 2022-01-25T12:49:32.090Z