回答編集履歴
1
chousei
test
CHANGED
@@ -29,3 +29,27 @@
|
|
29
29
|
</form>
|
30
30
|
|
31
31
|
```
|
32
|
+
|
33
|
+
emailはtypeがありますけどね
|
34
|
+
|
35
|
+
```php
|
36
|
+
|
37
|
+
<?php
|
38
|
+
|
39
|
+
$email=filter_input(INPUT_POST,"email",FILTER_VALIDATE_EMAIL);
|
40
|
+
|
41
|
+
var_dump($email);
|
42
|
+
|
43
|
+
?>
|
44
|
+
|
45
|
+
<form method="post">
|
46
|
+
|
47
|
+
<input type="email" name="email" required="required">
|
48
|
+
|
49
|
+
<input type="submit" value="send">
|
50
|
+
|
51
|
+
</form>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
```
|