Validate Email

3 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€91.20
List Price:  €127.69
You save:  €36.48
£77.89
List Price:  £109.05
You save:  £31.16
CA$142.62
List Price:  CA$199.67
You save:  CA$57.05
A$166.31
List Price:  A$232.84
You save:  A$66.53
S$134.75
List Price:  S$188.65
You save:  S$53.90
HK$776.63
List Price:  HK$1,087.31
You save:  HK$310.68
CHF 85.24
List Price:  CHF 119.34
You save:  CHF 34.09
NOK kr1,092.34
List Price:  NOK kr1,529.33
You save:  NOK kr436.98
DKK kr680.76
List Price:  DKK kr953.09
You save:  DKK kr272.33
NZ$179.38
List Price:  NZ$251.15
You save:  NZ$71.76
د.إ367.26
List Price:  د.إ514.18
You save:  د.إ146.91
৳12,147.82
List Price:  ৳17,007.43
You save:  ৳4,859.61
₹8,583.51
List Price:  ₹12,017.25
You save:  ₹3,433.74
RM447.95
List Price:  RM627.15
You save:  RM179.20
₦154,648.53
List Price:  ₦216,514.13
You save:  ₦61,865.60
₨28,243.80
List Price:  ₨39,542.45
You save:  ₨11,298.65
฿3,466.50
List Price:  ฿4,853.24
You save:  ฿1,386.74
₺3,800.72
List Price:  ₺5,321.17
You save:  ₺1,520.44
B$583.95
List Price:  B$817.55
You save:  B$233.60
R1,938.15
List Price:  R2,713.48
You save:  R775.33
Лв178.01
List Price:  Лв249.23
You save:  Лв71.21
₩146,694.49
List Price:  ₩205,378.15
You save:  ₩58,683.66
₪378.82
List Price:  ₪530.36
You save:  ₪151.54
₱5,742.67
List Price:  ₱8,039.97
You save:  ₱2,297.29
¥14,601.38
List Price:  ¥20,442.52
You save:  ¥5,841.14
MX$2,075.02
List Price:  MX$2,905.12
You save:  MX$830.09
QR364.51
List Price:  QR510.33
You save:  QR145.82
P1,401.27
List Price:  P1,961.83
You save:  P560.56
KSh12,948.70
List Price:  KSh18,128.70
You save:  KSh5,180
E£5,145.98
List Price:  E£7,204.58
You save:  E£2,058.60
ብር13,161.65
List Price:  ብር18,426.83
You save:  ብር5,265.18
Kz91,590.84
List Price:  Kz128,230.84
You save:  Kz36,640
CLP$98,029.41
List Price:  CLP$137,245.09
You save:  CLP$39,215.68
CN¥731.12
List Price:  CN¥1,023.60
You save:  CN¥292.48
RD$6,353.75
List Price:  RD$8,895.51
You save:  RD$2,541.75
DA13,365.23
List Price:  DA18,711.86
You save:  DA5,346.62
FJ$233.57
List Price:  FJ$327
You save:  FJ$93.43
Q771.72
List Price:  Q1,080.44
You save:  Q308.71
GY$20,918.72
List Price:  GY$29,287.05
You save:  GY$8,368.32
ISK kr13,253.67
List Price:  ISK kr18,555.67
You save:  ISK kr5,302
DH951.07
List Price:  DH1,331.53
You save:  DH380.46
L1,773.82
List Price:  L2,483.42
You save:  L709.60
ден5,584.34
List Price:  ден7,818.30
You save:  ден2,233.96
MOP$801.10
List Price:  MOP$1,121.57
You save:  MOP$320.47
N$1,918.54
List Price:  N$2,686.04
You save:  N$767.49
C$3,702.25
List Price:  C$5,183.30
You save:  C$1,481.04
रु13,655.52
List Price:  रु19,118.28
You save:  रु5,462.75
S/367.11
List Price:  S/513.97
You save:  S/146.86
K412.55
List Price:  K577.59
You save:  K165.03
SAR375.26
List Price:  SAR525.39
You save:  SAR150.12
ZK2,777.13
List Price:  ZK3,888.09
You save:  ZK1,110.96
L454.01
List Price:  L635.63
You save:  L181.62
Kč2,296.44
List Price:  Kč3,215.11
You save:  Kč918.66
Ft37,236.40
List Price:  Ft52,132.45
You save:  Ft14,896.05
SEK kr1,010.80
List Price:  SEK kr1,415.16
You save:  SEK kr404.36
ARS$107,331.43
List Price:  ARS$150,268.30
You save:  ARS$42,936.86
Bs690.86
List Price:  Bs967.24
You save:  Bs276.37
COP$418,085.65
List Price:  COP$585,336.63
You save:  COP$167,250.98
₡50,895.68
List Price:  ₡71,255.99
You save:  ₡20,360.31
L2,574.15
List Price:  L3,603.92
You save:  L1,029.76
₲806,578.30
List Price:  ₲1,129,241.89
You save:  ₲322,663.58
$U4,212.46
List Price:  $U5,897.61
You save:  $U1,685.15
zł391.99
List Price:  zł548.80
You save:  zł156.81
Already have an account? Log In

Transcript

Hello, in this video, I am going to show you how to validate an email address using the filter var function really simple, but it can be quite complex when you're trying to validate an email. So there's built in functionality, which is great for us. So the first thing I actually want to do is duplicate some of the stuff that we've got because I want to add a, you know, a do like a multi chord. I don't think I need to, ah, I don't think I need to do a new field, I will need to just comment out instead of doing this check, I will do a email address check instead. So you'll be on basically sort of you know, check in for email. And not just that I will actually rename it also.

Email era. Also email by email, email, email them to email. And the next thing I'm going to do is go down here update a few things email and also to make sure this is still working and all of this Okay, sounds good. Okay, so we want to validate the format to do this really simple. If so, if the format is not valid or not filter underscore var, so basically this checking if the fill of the format isn't valid, we are checking against the email variable and all we have to do is filter on this Score lovely date on the score email. So as you can see a few different things.

You can do it based on domain you can do it based on a few others stuff like MAC address, but wood and URL and the gonna email. So email and all we have to do now if this is not valid email error equals this is an invalid email I'll save that run out empty for just started my name that is not valid. And let's say for talking about company's email list that's fine for the contact list they actually contact me copy that that's invalid because we need dot something up a dot code UK for example, that will be valid. So that is how you validate email simple stuff. If you have any questions, feel free to pop me a message and as usual, I look forward to seeing you in the next video.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.