Document support for address lookup
[infodrom.org/www.infodrom.org] / src / Linux / submitit.wml
1 #include <infodrom.style>
2 #include <linux.style>
3
4 <page title="Upcoming Events Calendar">
5
6 <h1 align=center>Upcoming Events Calendar</h1>
7
8 <?
9   if ((strlen ($_POST['email']) > 0)
10     &&(strlen ($_POST['name']) > 0)
11     &&(strlen ($_POST['event']) > 0)
12     &&(strlen ($_POST['date']) > 0)
13     &&(strlen ($_POST['url']) > 0)) {
14
15     $header = "From: $_POST['name'] <$_POST['email']>";
16     $header = strtr($header, "\015\012", '  ');
17     $header .= "\r\n" . 'Content-Type: text/plain; charset="ISO-9959-1"';
18 <protect>
19     $body = "Event      : " . $_POST['event'] . "\n"
20            ."Date       : " . $_POST['date'] . "\n"
21            ."City       : " . $_POST['city'] . "\n"
22            ."Country    : " . $_POST['country'] . "\n"
23            ."URL        : " . $_POST['url'] . "\n"
24            ."Description: " . $_POST['description'] . "\n"
25            ."\n"
26            ."HTTP_USER_AGENT: " . $_SERVER['HTTP_USER_AGENT'] . "\n"
27            ."REMOTE_ADDR    : " . $_SERVER['REMOTE_ADDR'] . "\n"
28            ."SCRIPT_URI     : " . $_SERVER['SCRIPT_URI'] . "\n";
29 </protect>
30     mail ("joey@infodrom.org", "New event", $body, $header);
31     echo ("<p>Thanks for the note.</p><p>It'll be procesdsed soon.</p>");       
32   } else {
33     echo ("<p><b>You haven't completed the form.</b></p><p>Please go back and fill out all fields.</p>");
34   }
35 ?>
36
37 <p>Download <a href="calendar.ics">iCal</a> or <a href="calendar.rdf">RSS</a> calendar file.</p>
38
39 </page>
40
41 # Local variables:
42 # mode: indented-text
43 # mode: auto-fill
44 # end: