1 #include <infodrom.style>
4 <page title="Upcoming Events Calendar">
6 <h1 align=center>Upcoming Events Calendar</h1>
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)) {
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"';
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"
26 ."HTTP_USER_AGENT: " . $_SERVER['HTTP_USER_AGENT'] . "\n"
27 ."REMOTE_ADDR : " . $_SERVER['REMOTE_ADDR'] . "\n"
28 ."SCRIPT_URI : " . $_SERVER['SCRIPT_URI'] . "\n";
30 mail ("joey@infodrom.org", "New event", $body, $header);
31 echo ("<p>Thanks for the note.</p><p>It'll be procesdsed soon.</p>");
33 echo ("<p><b>You haven't completed the form.</b></p><p>Please go back and fill out all fields.</p>");
37 <p>Download <a href="calendar.ics">iCal</a> or <a href="calendar.rdf">RSS</a> calendar file.</p>