-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemail.php
More file actions
30 lines (24 loc) · 816 Bytes
/
email.php
File metadata and controls
30 lines (24 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
</head>
<body style="padding: 50px; font-size: 14px; font-family: Helvetica, Arial, sans-serif; color: #555;background: #eee;">
<?php
if(isset($_POST)) {
$email = $_POST["email"];
echo $email . '<br>';
$email = filter_var($email, FILTER_SANITIZE_EMAIL);
if(filter_var($email, FILTER_VALIDATE_EMAIL)) {
echo 'true<br>';
}
echo $email;
}
?>
<form method="post" action="" style="width: 500px;">
<label>E-post </label>
<input type="text" name="email" style="margin: 0 0 20px 0;padding: 10px; background: #f1f1f1; border-radius: 5px; border: #cdcdcd 1px solid; width: 500px;box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);"><br>
<button type="submit" style="padding: 20px;font-size: 18px;">Le validate();</button>
</form>
</body>
</html>