From 16939b4344b67ac8146015231af4d2fe691e90ce Mon Sep 17 00:00:00 2001 From: Mateja Date: Thu, 1 Oct 2020 14:50:02 +0200 Subject: tiding up... --- test/edit.inc.php | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'test/edit.inc.php') diff --git a/test/edit.inc.php b/test/edit.inc.php index cb0c23f..3309a7b 100644 --- a/test/edit.inc.php +++ b/test/edit.inc.php @@ -1,7 +1,18 @@ "; + } else { + echo "Email is valid: " . $email . "
"; + } +} + +function clear_input($data) { + $data = trim($data); + $data = stripslashes($data); + $data = htmlspecialchars($data); + return $data; +} -- cgit v1.2.3