diff options
author | Mateja <mail@matejamaric.com> | 2020-10-01 14:50:02 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-10-01 14:50:02 +0200 |
commit | 16939b4344b67ac8146015231af4d2fe691e90ce (patch) | |
tree | 50ba9f7093fd25d5d7aeee0ea5a240296fa68c98 /test/test.php | |
parent | 524fdc3a0ea3960823472e7e3f948b0cdd2003ef (diff) | |
download | old-php-yota-16939b4344b67ac8146015231af4d2fe691e90ce.tar.gz old-php-yota-16939b4344b67ac8146015231af4d2fe691e90ce.zip |
tiding up...
Diffstat (limited to 'test/test.php')
-rw-r--r-- | test/test.php | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/test/test.php b/test/test.php deleted file mode 100644 index 5bca6ac..0000000 --- a/test/test.php +++ /dev/null @@ -1,34 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - <meta charset="utf-8"/> - <meta name="viewport" content="width=device-width initial-scale=1.0"/> - <link href="../style.css" rel="stylesheet" type="text/css"/> - <title>Test</title> -</head> -<body> -<main> -<?php -if($_SERVER["REQUEST_METHOD"] == "POST") { - $email = clear_input($_POST['name']); - if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { - echo "You fucking bitch!<br>"; - } else { - echo "You oki: " . $email . "<br>"; - } -} -function clear_input($data) { - $data = trim($data); - $data = stripslashes($data); - $data = htmlspecialchars($data); - return $data; -} -include 'test.inc.php'; -?> -<form method="POST"> -<input type="text" name="name"> -<input type="submit" name="your-submit" value="Submit"> -</form> -</main> -</body> -</html> |