1
+ <!DOCTYPE html>
2
+ <html lang =" en" >
3
+ <head >
4
+ <meta charset = " UTF-8" >
5
+ <meta name = " viewport" content = " width=device-width, initial-scale=1.0" >
6
+ <title >Forms</title >
7
+ </head >
8
+ <body >
9
+ <h1 >Forms with PHP</h1 >
10
+ <form action = " 023-receive-form.php?name=Antonio&test=taxi" method = " post" >
11
+ <label for = " name" >Nome</label >
12
+ <input type = " text" name = " name" id = " name" >
13
+ <br >
14
+
15
+ <label for = " email" >Email</label >
16
+ <input type = " email" name = " email" id = " email" >
17
+ <br >
18
+
19
+ <fieldset >
20
+ <legend >Area of Interest</legend >
21
+ <input type = " checkbox" name = " interest[]" value = " sport" > Sport <br >
22
+ <input type = " checkbox" name = " interest[]" value = " music" > Music <br >
23
+ <input type = " checkbox" name = " interest[]" value = " movies" > Movies <br >
24
+ <input type = " checkbox" name = " interest[]" value = " books" > Books <br >
25
+ <input type = " checkbox" name = " interest[]" value = " other" > Other
26
+ </fieldset >
27
+ <br >
28
+ <label for = " source-of-referral" >How did you find us?</label >
29
+ <select id = " source-of-referral" name = " source-of-referral" >
30
+ <option value = " internet" >Internet</option >
31
+ <option value = " friend" >Friend</option >
32
+ <option value = " advertisement" >Advertisement</option >
33
+ <option value = " social_media" >Social Media</option >
34
+ <option value = " other" >Other</option >
35
+ </select >
36
+ <br >
37
+ <fieldset >
38
+ <legend >Gender</legend >
39
+ <input type = " radio" name = " gender" value = " male" > Male <br >
40
+ <input type = " radio" name = " gender" value = " Female" > Female <br >
41
+ </fieldset >
42
+ <label for = " message" >Message</label ><br >
43
+ <textarea name = " message" id = " message" cols = " 30" rows = " 10" ></textarea >
44
+ <br >
45
+ <input type = " submit" value = " Send" >
46
+ </form >
47
+ </body >
48
+ </html >
0 commit comments