DiarYofaMadmaN
09-24-2004, 06:26 AM
code in the functions.php file:<?
//functions page
function send_mail() {
$my_name = $_POST['first_name'].' '.$_POST['last_name'];
$my_email = $_POST['email'];
$to_name = '......';
$to_email = '......';
$subject = '.....!';
$message = '.....';
ThisHTML;
$mailheaders = "From: $my_name <$my_email>\n";
$mailheaders .= "MIME-Version: 1.0\r\n";
$mailheaders .= "Content-Type: text/html; charset=iso-8859-1";
if (!=mail('$to_name <$to_email>', '$subject', '$message', '$mailheaders')) {
echo "mail couldn't be sent";
}
}
?>
<?php
include ('functions.php');
if ($_POST["QuoteCheck"] == "1") {
send_mail()
} //<---15th line
?>
I'm getting this error: Parse error: syntax error, unexpected '}' in c:\Inetpub\wwwroot\clients\butterfly\index.php on line 15
I have the if statement closed off.. i don't understand why i'm getting that error.... thanks for the help...
-peace
//functions page
function send_mail() {
$my_name = $_POST['first_name'].' '.$_POST['last_name'];
$my_email = $_POST['email'];
$to_name = '......';
$to_email = '......';
$subject = '.....!';
$message = '.....';
ThisHTML;
$mailheaders = "From: $my_name <$my_email>\n";
$mailheaders .= "MIME-Version: 1.0\r\n";
$mailheaders .= "Content-Type: text/html; charset=iso-8859-1";
if (!=mail('$to_name <$to_email>', '$subject', '$message', '$mailheaders')) {
echo "mail couldn't be sent";
}
}
?>
<?php
include ('functions.php');
if ($_POST["QuoteCheck"] == "1") {
send_mail()
} //<---15th line
?>
I'm getting this error: Parse error: syntax error, unexpected '}' in c:\Inetpub\wwwroot\clients\butterfly\index.php on line 15
I have the if statement closed off.. i don't understand why i'm getting that error.... thanks for the help...
-peace