I have gone through this code over and over and it keeps telling me that there is a parse error on line 41 maybe I have been looking at this for to long::: I have a feeling though that it has to do with the email body, but the again I am not sure:
<?php
function submit()
{
$first_name = $_POST['first_name'];
$mi = $_POST['mi'];
$last_name = $_POST['last_name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$send = <!-- e --><a href="mailto:'[email protected]">'[email protected]</a><!-- e -->';
$encoded_email = urlencode($send);
///////////////////////////// Email //////////////////////////////
$mail_body = <<< EOMAILBODY
This customer has just signed up for service:
echo $first_name;
echo $mi;
echo $last_name;
echo $phone;
echo $email;
Below are the installation specifications from questionaire
EOMAILBODY;
///////////////////////////// End Email ///////////////////////
mail($email, 'IguanaNet.com Installation Specifications', $mail_body, 'New User');
$feedback = 'YOU HAVE SUCCESSFULLY REGISTERED.</br> You will recieve a confirmation email and receipt soon!!! Thank you for choosing IgunaNet.com';
return $feedback;
}
/////below is line 41//////
?>nevermind I fixed that parse error but yet another one should up.... it is on line 19 which is the line here:
This customer has just signed up for service:
the other problem was fixed by removing the <<<< from in front of EOMAILBODY<?php
function submit()
{
$first_name = $_POST['first_name'];
$mi = $_POST['mi'];
$last_name = $_POST['last_name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$send = <!-- e --><a href="mailto:'[email protected]">'[email protected]</a><!-- e -->';
$encoded_email = urlencode($send);
///////////////////////////// Email //////////////////////////////
$mail_body = <<< EOMAILBODY
This customer has just signed up for service:
echo $first_name;
echo $mi;
echo $last_name;
echo $phone;
echo $email;
Below are the installation specifications from questionaire
EOMAILBODY;
///////////////////////////// End Email ///////////////////////
mail($email, 'IguanaNet.com Installation Specifications', $mail_body, 'New User');
$feedback = 'YOU HAVE SUCCESSFULLY REGISTERED.</br> You will recieve a confirmation email and receipt soon!!! Thank you for choosing IgunaNet.com';
return $feedback;
}
/////below is line 41//////
?>
Try thisyeah, if you use those extended quotes things (whatever they are called) the ending tag has to be the first thing on the line. you cant have a bunch of spaces.
<?php
function submit()
{
$first_name = $_POST['first_name'];
$mi = $_POST['mi'];
$last_name = $_POST['last_name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$send = <!-- e --><a href="mailto:'[email protected]">'[email protected]</a><!-- e -->';
$encoded_email = urlencode($send);
///////////////////////////// Email //////////////////////////////
$mail_body = <<< EOMAILBODY
This customer has just signed up for service:
echo $first_name;
echo $mi;
echo $last_name;
echo $phone;
echo $email;
Below are the installation specifications from questionaire
EOMAILBODY;
///////////////////////////// End Email ///////////////////////
mail($email, 'IguanaNet.com Installation Specifications', $mail_body, 'New User');
$feedback = 'YOU HAVE SUCCESSFULLY REGISTERED.</br> You will recieve a confirmation email and receipt soon!!! Thank you for choosing IgunaNet.com';
return $feedback;
}
/////below is line 41//////
?>nevermind I fixed that parse error but yet another one should up.... it is on line 19 which is the line here:
This customer has just signed up for service:
the other problem was fixed by removing the <<<< from in front of EOMAILBODY<?php
function submit()
{
$first_name = $_POST['first_name'];
$mi = $_POST['mi'];
$last_name = $_POST['last_name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$send = <!-- e --><a href="mailto:'[email protected]">'[email protected]</a><!-- e -->';
$encoded_email = urlencode($send);
///////////////////////////// Email //////////////////////////////
$mail_body = <<< EOMAILBODY
This customer has just signed up for service:
echo $first_name;
echo $mi;
echo $last_name;
echo $phone;
echo $email;
Below are the installation specifications from questionaire
EOMAILBODY;
///////////////////////////// End Email ///////////////////////
mail($email, 'IguanaNet.com Installation Specifications', $mail_body, 'New User');
$feedback = 'YOU HAVE SUCCESSFULLY REGISTERED.</br> You will recieve a confirmation email and receipt soon!!! Thank you for choosing IgunaNet.com';
return $feedback;
}
/////below is line 41//////
?>
Try thisyeah, if you use those extended quotes things (whatever they are called) the ending tag has to be the first thing on the line. you cant have a bunch of spaces.