multiple recipients contact form

When I fill out the form on the first page it submits it to another php file. That php code is below.

When submitted it will send it to:
$recipient="[email protected]";
which is sent to us.
But I also want the customer filling out the form to be copied on it.
It should be sent to something like
$recipient="$senderEmail";
which is the email address when the customer types in their own
or could I do something like:
$recipient="[email protected]",$senderEmail;

[code]<?php

if($_POST[“submit”]) {
$recipient="[email protected]";
$subject=“Invoice Payment - Credit Card”;
$sender=$_POST[“Customer_Name”];
$stotal=$_POST[“stotal”];
$fee=$_POST[“fee”];
$gtotal=$_POST[“gtotal”];
$boxtotal=$_POST[“gtotal”];
$companysender=$_POST[“Company_Name”];
$phone=$_POST[“Phone_Number”];
$address1=$_POST[“Address_Line_1”];
$address2=$_POST[“Address_Line_2”];
$senderEmail=$_POST[“senderEmail”];
$message=$_POST[“message”];
$invoice1=$_POST[“Invoice_1”];
$invoice2=$_POST[“Invoice_2”];
$invoice3=$_POST[“Invoice_3”];
$invoice4=$_POST[“Invoice_4”];
$invoice5=$_POST[“Invoice_5”];
$invoice6=$_POST[“Invoice_6”];
$invoice7=$_POST[“Invoice_7”];
$invoice8=$_POST[“Invoice_8”];
$invoice9=$_POST[“Invoice_9”];
$invoice10=$_POST[“Invoice_10”];
$invoice1amt=$_POST[“tb1”];
$invoice2amt=$_POST[“tb2”];
$invoice3amt=$_POST[“tb3”];
$invoice4amt=$_POST[“tb4”];
$invoice5amt=$_POST[“tb5”];
$invoice6amt=$_POST[“tb6”];
$invoice7amt=$_POST[“tb7”];
$invoice8amt=$_POST[“tb8”];
$invoice9amt=$_POST[“tb9”];
$invoice10amt=$_POST[“tb10”];

$mailBody="Online Credit Card Payment Details:

           Name: $sender
           Company Name: $companysender
           Email Address: $senderEmail
           Phone Number: $phone
           Address Line 1: $address1
           Address Line 2: $address2
           
           Invoice 1: $invoice1  -  Amount: $$invoice1amt
           Invoice 2: $invoice2  -  Amount: $$invoice2amt
           Invoice 3: $invoice3  -  Amount: $$invoice3amt
           Invoice 4: $invoice4  -  Amount: $$invoice4amt
           Invoice 5: $invoice5  -  Amount: $$invoice5amt
           Invoice 6: $invoice6  -  Amount: $$invoice6amt
           Invoice 7: $invoice7  -  Amount: $$invoice7amt
           Invoice 8: $invoice8  -  Amount: $$invoice8amt
           Invoice 9: $invoice9  -  Amount: $$invoice9amt
           Invoice 10: $invoice10  -  Amount: $$invoice10amt
           
           Sub Total: $$stotal
           CC Fee: $$fee
           Grand Total: $$gtotal
           
           Message:
           $message";

mail($recipient, $subject, $mailBody, "From: $sender <$senderEmail>");

$stotal="$$stotal";
$fee="$$fee";
$gtotal="$$gtotal";
$boxtotal="$boxtotal";

}

?>[/code]

Sponsor our Newsletter | Privacy Policy | Terms of Service