-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreport_sighting.php
More file actions
26 lines (24 loc) · 1007 Bytes
/
report_sighting.php
File metadata and controls
26 lines (24 loc) · 1007 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
<?php
// Here we get all the information from the fields sent over by the form.
$msg = "SIGHTING REPORT\n\n";
$msg .= "Species: $_POST[species]\n";
$msg .= "Date & Time First Seen: $_POST[firstDate]\n";
$msg .= "Date & Time Last Seen: $_POST[lastDate]\n";
$msg .= "Number of Birds: $_POST[number]\n";
$msg .= "County: $_POST[county]\n";
$msg .= "Name of Observer: $_POST[name]\n";
$msg .= "Email of Observer: $_POST[email]\n";
$msg .= "Address of Observer: $_POST[address]\n";
$msg .= "Other Observers: $_POST[others]\n";
$msg .= "Optical Aids: $_POST[opticals]\n";
$msg .= "Length of Time Viewed: $_POST[time]\n";
$msg .= "Photographed/Recorded: $_POST[recorded]\n";
$msg .= "100% Certain?: $_POST[certain]\n";
$msg .= "Description: $_POST[description]\n";
$to = "mrodighe@mail.ccsf.edu";
$cc = "$_POST[email]";
$subject = "Sighting Report";
mail($to, $subject, $msg);
mail($cc, $subject, $msg);
echo "THANK YOU FOR YOUR SUBMISSION"; // success message
?>