Web

Form validation

Në shqip: Validimi i formularit

ShpjegimiSQ

Validimi i formularit kontrollon që përdoruesi i ka plotësuar fushat siç duhet para se ta dërgojë — p.sh. email-i ka @, fjalëkalimi është mjaft i gjatë. HTML-ja e bën vetë me required, type="email" dhe minlength, por serveri duhet të kontrollojë sërish.

EnglishEN

Form validation checks that the user filled in the fields correctly before sending — e.g. the email has an @, the password is long enough. HTML does it itself with required, type="email" and minlength, but the server must check again.

Si ta mendosh

Si zyrtari te sporteli që të thotë „të mungon nënshkrimi“ para se ta pranojë formularin.

Lexoje në anglisht

Like the clerk at the counter who says “you've missed the signature” before accepting your form.

Shembull kodihtml

<input type="email" required>
<input type="password" minlength="8" required>
<button>Regjistrohu</button>

Terma të lidhur