function LoadForm() { ob_start(); SendForm(); AddForm(); return ob_get_clean(); }
$body .= sprintf("His comment:\n\r%s", $values['comments']); $mailer->Body = $body; $mailer->AddAddress($values['emailto']); $mailer->AddReplyTo("*****@*****.**", "*****@*****.**"); $mailer->Send(); } if (isset($parameter)) { $post = $parameter; $_P = $_POST; $message = ""; if ($_P["sendto"] == "1" && !IsValidEmail($_POST['emailto'])) { $message = "E-mail address is not valid"; } if ($_P["sendto"] == "1" && IsValidEmail($_POST['emailto'])) { $message = "Your message was sent successfully."; SendForm(); } if ($message != "") { $run_result .= <<<END \t\t<div align="center"><font color="#FF0000">{$message}</font></div> END; } $run_result .= <<<END <script> function ShowUrlForm(archor) { \tvar div = document.getElementById("newsFormUrl"); \tif( div != null) \t{ \t\tvar isVisible = (div.style.display != 'none');