-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhomework26.php
24 lines (24 loc) · 1.1 KB
/
homework26.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Array to string</title>
</head>
<body>
<?php //connect to data.php ?>
<form action="data.php" method="post">
Username: <input type="text" name="username" placeholder="Enter name" require /><br/><br/>
Select your favorite colors:<br/>
Red <input type="checkbox" name="check_list[]" value="red"/><br/>
Blue <input type="checkbox" name="check_list[]" value="blue"/><br/>
Green <input type="checkbox" name="check_list[]" value="green" /><br/>
Yellow <input type="checkbox" name="check_list[]" value="yellow"/><br/>
Pink <input type="checkbox" name="check_list[]" value="pink"/><br/>
Black <input type="checkbox" name="check_list[]" value="black"/><br/>
White <input type="checkbox" name="check_list[]" value="white"/><br/><br/>
<input type="submit" name="submit" value="Submit"/> <br/>
</form>
</body>
</html>