Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Kieran Barker15,028 Points
Is automatic HTML form validation sufficient?
Imagine I had the following HTML. Please pay particular attention to the
<required> attribute on the
<form action="/action_page_post.php" method="post">
<input type="text" name="fname" required>
<input type="submit" value="Submit">
Ari Misha19,323 Points
Hiya there! The required attribute only ensures that this field is required and shouldnt be empty. Forms in back-end is like an another different world, where you store the details filled by user in your database , and also sanitize the entries whilst validating 'em as well. And password gets encrypted and added salt in order to store 'em in your database and a session is created if this is a sign up or sign in form. So yeah a lots of stuff happens in back-end when the app processes a form. But HTML only take cares of your front-end or markup on your webpage.