|
Ok, I have a form that works great, but i would like to give the user the option to receive a copy themselves, as well as a copy going to admin (myself). Currently I have a checkbox 'emailCopy' set up... and it is successfully sending a copy, but the formatting of the data is not what I want. I am getting back:
The following information was submittedDayle2sampledocket
And, I would like it to look like this:
The following information was submitted Dayle2
sampledocket
In other words, separated lines... currently, I am getting no spaces in between the submitted data.
Here is my code:
// Send user a copy
if(@$_POST['emailCopy']){//the name of the cc me checkbox
$to=$_POST['email'];//the name of the email input field
$subject='Studio Job Form Receipt';
$message='The following information was submitted'.$_POST['name'] .$_POST['docket'];'\n\r'. // concatenate the other values to the message using a period or more usefully
mail($to,$subject,$message);
}
Actually, if there is just a way to send an exact copy to the use as what the admin receives... that would be even better. I have tried everthing with my limited knowledge... this is the closets I have gotten to it working.
Thanks!
|