-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathlist_create.php
More file actions
44 lines (37 loc) · 743 Bytes
/
list_create.php
File metadata and controls
44 lines (37 loc) · 743 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
include 'list_funcs.php';
$url = BASE_URL;
if(isset($_GET['list']) && isset($_GET['addr'])) {
$list = $_GET['list'];
$addr = $_GET['addr'];
if(list_create($list, $addr)) {
echo "List created. Check your email.";
}
else {
echo "List could not be created.";
}
exit(0);
}
echo <<<PAGE
<html>
<head>
<title>Create List</title>
</head>
<body>
<form action="$url/list_create.php">
<table>
<tr>
<td>List:</td>
<td><input type="text" name="list"></td>
</tr>
<tr>
<td>Email:</td>
<td><input type="text" name="addr"></td>
</tr>
<tr><td colspan="2"><input type="submit" value="Create List"></td></tr>
</table>
</form>
</body>
</html>
PAGE;
?>