Geoantiquity Recommendation Form
// if the form is submitted
if (isset($Submit)) {
// for every input element
foreach($HTTP_POST_VARS as $key => $value) {
// except the SUBMIT button
if ($key!="Submit") {
// give us the field name followed by the field contents
if (!is_array($value)) {
$form_data .= "\n$key:\n $value \n";
// if a field has multiple values (multiple selects or checkboxes), list them all
} else {
$form_data .= "\n$key: \n";
foreach ($value as $ele) {
$form_data .= " $ele \n";
}
}
}
}
// \n is the newline character use it instead of hitting "enter" when ever you want a new line.
// You can erase or change the everything in $message except $form_data.
$message = "enter a greeting here if you want or erase this\n\n$form_data \n\nthen some closing stuff if you want that too";
// be sure to change the email address and the "Email Subject";
mail("lance@csbs.utah.edu", "Email Subject", "$message");
}
?>
if (!isset($Submit)) {
?>
Recommend
a Geoantiquity
Please fill out this form as completely as possible to add a geoantiquity
to the Bonneville Inventory. Your recommendations will help to broaden
and strengthen the inventory. Thank you!
} else {
?>
Thanks for your suggeestion. We will attend to it in the immediate future.
}
?>