Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
milesokeefe
· 12y ago · 0 comments
Nope, pretty basic server side validation in PHP:
filter_var($_POST['email'], FILTER_SANITIZE_EMAIL)
Comments
[–]
deeebug
12y ago
"FILTER_SANITIZE_EMAIL" doesn't do any validation. That only filters.
[–]
milesokeefe
OP
12y ago
Which is what I want. It prevents attacks but allows me to see the odd non-email stuff people submit.
[–]
_RPM
12y ago
FILTER_VALIDATE_EMAIL