Improve your form validation hints without JS!

Improve your form validation hints without JS!

Kevin Powell

1 год назад

64,627 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Kevin Powell
Kevin Powell - 18.08.2022 17:24

You'll still want to use some proper validation on your forms, but for these client-side hints we can make big improvements with a little extra HTML.

Ответить
Steve Johnson
Steve Johnson - 11.10.2023 00:06

Good video Kevin, I was just looking for something basic and you delivered. Good intro video to regx.

Ответить
Dakid Airleyan_ZA
Dakid Airleyan_ZA - 06.08.2023 19:04

thanks

Ответить
I'll smash it with a hammer!
I'll smash it with a hammer! - 05.06.2023 22:59

Why not to use "type='email'" instead of regexp?

Ответить
Laura Paredes
Laura Paredes - 23.05.2023 07:49

Hi! I love your videos Thank you for sharing your knowledge. Can you make a video of how to include a captcha on a contact form please.

Ответить
stephen ndungu
stephen ndungu - 31.03.2023 20:16

i tried to used preventdefault function and it overided the html validation how can i go arround this the method is post

Ответить
Lonnie James
Lonnie James - 27.02.2023 05:41

Do you need to use regexr to add the pattern? Can't you just type the pattern in your HTML page?

Ответить
Samuel Charpentier
Samuel Charpentier - 26.01.2023 21:09

If you allow a space in the domaine name of the email, it will accept a domain with a space, wich is not allowed

Ответить
Samuel Charpentier
Samuel Charpentier - 26.01.2023 21:07

This email regex is only valid for latin alphabet emails. I wonder if other alphabets are accepted for email adresses user names.

Ответить
Brian Jett
Brian Jett - 14.01.2023 01:04

I have a stupid question, will this work on PHP? I'm kinda learning how to make a login system for my website.

Ответить
Jaibunnisa Mohammad
Jaibunnisa Mohammad - 11.01.2023 02:07

till is not working in safari as it is in chrome

Ответить
Ben
Ben - 23.11.2022 10:14

Finally somebody that explain regex easily

Ответить
mark morallos
mark morallos - 09.11.2022 14:20

How to do that split screen where you can see what you're coding in real time?

Ответить
Iain Simmons
Iain Simmons - 09.10.2022 01:36

I'm a weird one in that I actually like regex, but the main thing I learnt from this that I didn't know is using the title to add to the default validation tooltip!

Ответить
Iain Simmons
Iain Simmons - 09.10.2022 01:35

The password regex allows some characters but doesn't enforce any. To do that you'd need something called a positive lookahead (check characters following the current one to make sure they exist):
^(?=[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,}$

Ответить
Evan Yoohoo
Evan Yoohoo - 08.10.2022 18:24

I beg you not to do this!
Please let me log into your site as "...."@[2603:c020:800b:fe:23ce:871b:9a09:4eb0] like god intended!

Ответить
MrBrax
MrBrax - 23.09.2022 20:53

Validating email just doesn't feel worth it at all with all the weird stuff you can have in addresses like Chinese characters and quote marks

Ответить
Drummer
Drummer - 23.09.2022 08:54

I don't think spaces are allowed in domain names, so I'm not sure why a space was added to regex. Good ideas on form.

Ответить
Nick Volt
Nick Volt - 20.09.2022 15:02

Big letters should be banned in email to teach people how to write it right.

Ответить
Ukyō
Ukyō - 09.09.2022 09:52

Men, why is there no standard function for email validation?

Ответить