Report a Trail Problem

To report a trail problem, please use the form below.

“;
$form_block = ”

Your Name:
Your Email:
Date of Trail Inspection:
Trail:
Location on Trail
and Problem(s):
Verification Step: Please enter the number of marks:
\"how
 

“;

if ($_POST[op] != “ds”) {

//show the form
echo “$formintro”;
echo “$form_block”;

} else if ($_POST[op] == “ds”) {

if ($_POST[contact_name] == “”) {

$error_block_open = “

FORM INFORMATION NEEDED:

“;
$name_error = “

  • Please Enter Your Name
  • “;
    $send = “no”;
    $error_block_close = “

    “;

    }

    if ($_POST[contact_email] == “”) {
    $error_block_open = “

    FORM INFORMATION NEEDED:

    “;
    $email_error = “

  • Please Enter Your Email Address
  • “;
    $send = “no”;
    $error_block_close = “

    “;

    }

    if ($_POST[inspection_date] == “”) {

    $error_block_open = “

    FORM INFORMATION NEEDED:

    “;
    $date_error = “

  • Please Enter the Date of Trail Inspection
  • “;
    $send = “no”;
    $error_block_close = “

    “;

    }

    if ($_POST[trail_area] == “”) {

    $error_block_open = “

    FORM INFORMATION NEEDED:

    “;
    $area_error = “

  • Please the Trail or Area
  • “;
    $send = “no”;
    $error_block_close = “

    “;

    }

    if ($_POST[trail_description] == “”) {
    $error_block_open = “

    FORM INFORMATION NEEDED:

    “;
    $description_error = “

  • Please Enter a Description of the Trail and/or Problems
  • “;
    $send = “no”;
    $error_block_close = “

    “;

    }

    if ($_POST[how_many] != “7”) {
    $error_block_open = “

    FORM INFORMATION NEEDED:

    “;
    $howmany_error = “

  • Please Enter How Many
  • “;
    $send = “no”;
    $error_block_close = “

    “;

    }

    if ($send !=”no”) {

    // ok to send
    $to = “report@trailsallianceofsantafe.org”. “,”;
    $to .= “tim@sfct.org”. “,”;
    $to .= “swashbu@comcast.net”. “,”;
    $to .= “cmmalexander@cybermesa.com”. “,”;
    $to .= “cfox@aviandesign.net”;

    $subject = “Trails Alliance of Santa Fe: Trail Report Form Submission”;
    $mailheaders = “From: $_POST[contact_email] \n”;
    $mailheaders .= “Reply-To: $_POST[contact_email]\n”;
    $msg = “Email sent from Trail Report Form on trailsallianceofsantafe.org:\n\n”;
    $msg .= “Sender Name: $_POST[contact_name]\n\n”;
    $msg .= “Sender Email: $_POST[contact_email]\n\n”;
    $msg .= “Inspection Date: $_POST[inspection_date]\n\n”;
    $msg .= “Trail: $_POST[trail_area]\n\n”;
    $msg .= “Location on Trail and Problem(s): “. stripslashes($_POST[trail_description]) .”\n\n”;
    $msg .= “END”;

    mail ($to, $subject, $msg, $mailheaders);

    echo “

    Thank you. The following message has been sent:

    “;

    echo “

    Your Name: $_POST[contact_name]
    Your Email: $_POST[contact_email]
    Inpection Date: $_POST[inspection_date]
    Trail or Area: $_POST[trail_area]
    Description/Problems: “.stripslashes($_POST[trail_description]).”

    “;

    } else if ($send == “no”) {

    // generate error message(s)
    echo “$error_block_open”;
    echo “$name_error”;
    echo “$email_error”;
    echo “$date_error”;
    echo “$area_error”;
    echo “$description_error”;
    echo “$howmany_error”;
    echo “$error_block_close”;
    echo “$form_block”;
    }
    }
    ?>