How to add email from FORM into CC php script
<p>I have the following form in html:</p>

<pre><code>&lt;form action="email.php" class="form"&gt;
    &lt;fieldset&gt;
    &lt;legend&gt;Formular contact&lt;/legend&gt;

    &lt;p class="nume"&gt;
        &lt;input type="text" name="nume" id="nume" /&gt;
        &lt;label for="nume"&gt;Nume&lt;/label&gt;
    &lt;/p&gt;

        &lt;p class="prenume"&gt;
        &lt;input type="text" name="prenume" id="prenume" /&gt;
        &lt;label for="nume"&gt;Prenume&lt;/label&gt;
    &lt;/p&gt;

    &lt;p class="companie"&gt;
        &lt;input type="text" name="companie" id="companie" /&gt;
        &lt;label for="companie"&gt;Companie&lt;/label&gt;
    &lt;/p&gt;

    &lt;p class="email"&gt;
        &lt;input type="text" name="email" id="email" /&gt;
        &lt;label for="email"&gt;E-mail&lt;/label&gt;
    &lt;/p&gt;

    &lt;p class="telefon"&gt;
        &lt;input type="text" name="telefon" id="telefon" /&gt;
        &lt;label for="telefon"&gt;Telefon&lt;/label&gt;
    &lt;/p&gt;

    &lt;p class="text"&gt;
        &lt;textarea name="text"&gt;&lt;/textarea&gt;
        &lt;label for="text"&gt;Mesaj&lt;/label&gt;
    &lt;/p&gt;


    &lt;p class="submit"&gt;
        &lt;input type="submit" value="Trimite"&gt;
        &lt;input type="reset" value="Sterge" onClick="form()" /&gt;
    &lt;/p&gt;
    &lt;/fieldset&gt;
&lt;/form&gt;
</code></pre>

<p>and the following php script:</p>

<pre><code>&lt;?php
$field_name = $_POST['nume'];
$field_firstname = $_POST['prenume'];
$field_companie = $_POST['companie'];
$field_email = $_POST['email'];
$field_message = $_POST['comentariu'];

$mail_to = 'example@gmail.com',;
$subject = 'New message from your website';
$headers = "From: comentariu@domain.com\r\n" .
**$hearders .= "Cc: .$_GET['email']\r\n";**
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";


$body = '&lt;html&gt;&lt;body&gt;';
$body .= '&lt;img src="http://www.bgd-group.ro/images/email.jpg" alt="BGD-GROUP" /&gt;';
$body .= '&lt;p&gt;&lt;center&gt;&lt;strong&gt;&lt;font color="red"&gt;Tabelul de mai jos contine datele completate de client pe site&lt;/font&gt;&lt;/strong&gt;&lt;/center&gt;&lt;/p&gt;';
$body .= '&lt;table rules="all" style="border-color: #666;" border="3" cellpadding="14"&gt;';
$body .= "&lt;tr style='background: #eee;'&gt;&lt;td&gt;&lt;strong&gt;Label&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;&lt;strong&gt;Informatii client de pe site&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;";
$body .= "&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Nume:&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;" . strip_tags($_GET['nume']) . "&lt;/td&gt;&lt;/tr&gt;";
$body .= "&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Prenume:&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;" . strip_tags($_GET['prenume']) . "&lt;/td&gt;&lt;/tr&gt;";
$body .= "&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Companie:&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;" . strip_tags($_GET['companie']) . "&lt;/td&gt;&lt;/tr&gt;";
$body .= "&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Email:&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;" . strip_tags($_GET['email']) . "&lt;/td&gt;&lt;/tr&gt;";
$body .= "&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Telefon:&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;" . strip_tags($_GET['telefon']) . "&lt;/td&gt;&lt;/tr&gt;";
$body .= "&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Mesaj:&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;" . strip_tags($_GET['comentariu']) . "&lt;/td&gt;&lt;/tr&gt;";
$body .= "&lt;/table&gt;";
$body .= "&lt;/body&gt;&lt;/html&gt;";

//pana aici

$mail_status = mail($mail_to, $subject, $body, $headers);

if ($mail_status) { ?&gt;
    &lt;script language="javascript" type="text/javascript"&gt;
        alert('Multumim pentru mesaj! Va vom contacta noi in cel mai scurt timp posibil');
        window.location = 'index.html';
    &lt;/script&gt;
&lt;?php
}
else { ?&gt;
    &lt;script language="javascript" type="text/javascript"&gt;
        alert('Mesajul nu a fost trimis! Va rugam reincercati.');
        window.location = 'contact2.html';
    &lt;/script&gt;
&lt;?php
}
?&gt;
</code></pre>

<p>The bold line is what I am trying to add. <strong>$hearder .= "Cc: email from form\r\n";</strong>
I want to add in CC the email filled in the form.
How is it possible that. Please help me.</p>
