Browse Source

input validation

master
kenzie tandun 4 years ago
parent
commit
54bbf3fafb
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      templates/form.html

+ 5
- 4
templates/form.html View File

@@ -24,17 +24,17 @@

<div class="form-group">
<p><label for="weight">Weight in kg: </label></p>
<input required pattern="[0-9]*" type="number" name="weight" placeholder="e.g. 20"/>
<input required min="0" max="100" pattern="[0-9]*" type="number" name="weight" placeholder="e.g. 20"/>
</div>

<div class="form-group">
<p><label for="height">Height in cm: </label></p>
<input required pattern="[0-9]*" type="number" name="height" placeholder="e.g. 100"/>
<input required min="0" max="150" type="number" name="height" placeholder="e.g. 100"/>

</div>
<div class="form-group">
<p><label for="hc">Head Circumference in cm: </label></p>
<input required pattern="[0-9]*" type="number" name="hc" placeholder="e.g. 30"/>
<input required min="0" type="number" name="hc" placeholder="e.g. 30"/>

</div>
<div class="form-group">
@@ -49,7 +49,8 @@
<br>

<div class="text-center">
<p>Ada bug? Laporkan ke nudnateiznek@gmail.com</p>
<p>Website might not work as intended in Safari browser</p>
<p>Bugs? Shoot me an email: nudnateiznek@gmail.com</p>
</div>
</body>
</html>

Loading…
Cancel
Save