".count($results)." search results were found."; } else { $msg = "0 search results were found."; } ########### END SEARCH ########### ######### BUTTON HANDLER ######### if (!isSet($btn)) {// begin session $_SESSION["btn"] = 1; } elseif (!isSet($action)) {// index page $_SESSION["btn"] = 1; } elseif (!isSet($_GET["btn"])) {// subpage $_SESSION["btn"] = 0; } else { $_SESSION["btn"] = $_GET["btn"];// any page } ###### END BUTTON HANDLER ###### ############# CONTACT ############# if (isSet($sendMail)) { $head = "". "". "Message". "". ""; $foot = ""; $body = "
". "". "". "". "". "". "". "". "". "
RE:  ".@$category."
Name: ".@$name."
Company: ".@$company."
Address: ".@$address."
Telephone: ".@$telephone."
Email: ".@$email."

".@$comments."
"; $headers = "MIME-Version: 1.0\n"; $headers .= "From: knob@radioknob.org\n"; $headers .= "Reply-To: knob@radioknob.org\n"; $headers .= "X-Sender: \n"; $headers .= "X-Sender-IP: knob@radioknob.org\n"; $headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal $headers .= "Return-Path: \n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "X-Mailer: PHP/" . phpversion(). "\n"; //mailer $to = "info@radioknob.org"; $subject = "Listener comments"; $body = $head.$body.$foot; $body = stripslashes($body); $body = nl2br($body); $parameters = "-f knob@radioknob.org"; $formsent = @mail ($to,$subject,$body,$headers,$parameters); $comments = trim($comments); if (strlen($comments) == 0) { $message = "
!!! Please enter your comments into the textfield below !!!

"; } elseif ($formsent) { $action = "response"; $heading = "Contact Us"; $message = "
Thank you for your comments or questions. We always encourage our listeners to respond so we know best how to service our community. We appreciate your communication and take your opinions seriously. Thank you for listening!

Executive Director,
Luther Guise.

"; } else { $heading = "Server Error"; $action = "response"; $message = "
Your Email Failed.

The server has dropped your email session.
Please use the link below to try again.

Try again.
"; } } ########### END CONTACT ########### ?> www.radioknob.org
FAIL (the browser should render some flash content, not this).
Copyright 2006- © KNOB 99.9 FM. Community Broadcasting, Inc. All rights reserved.
Sponsorship  |  Contact Us  |  Popular Web Designs