I have a interoffice form HTML/PHP with attachments that is working great. But I would like to add a button that would allow the user to click to receive a copy. I am totally new at this, so please speak slowly

All help is appreciated!
This is a modified HiQform. So below is
Here is my HTML code (area that relates to above):
<label for="userCopyMe"><br />
Check the box if you wish to be sent a copy of this message</label>
<input type="checkbox" name="userCopyMe" id="userCopyMe" value="1" />
________________
My PHP:
<?
// mail the content
function mailIt($content, $subject, $email, $recipient, $bcc) {
global $attachuser, $attachtemp, $attachsize, $attachtype, $this_version;
$headpart = "";
// build message headers
if($email == '') $email = "noone@nowhere.ext";
$headpart = "From: $email\r\n";
$headpart .= "Reply-To: $email\r\n";
if ($bcc != '') $headpart .= "Bcc: $bcc\r\n";
$headpart .= "X-Mailer: HiQ FormMail $this_version\r\n";
$headpart .= "Content-Type: text/plain; charset=ISO-8859-1\r\n";
$headpart .= "Content-Transfer-Encoding: 7bit\r\n\r\n";
//Allow user to get a copy of the message sent to them, true or false
$copyme = true; if ($copyme)
if ($userCopyMe == "1") { echo "checked=\"checked\"";
if ($attachuser) {
// create a MIME boundary string
$boundary = md5(uniqid(time()));
// add MIME data to the message headers
$headpart = "MIME-Version:1.0\r\n";
$headpart .= "From: $email\r\n";
$headpart .= "Reply-To: $email\r\n";
if ($bcc != '') $headpart .= "Bcc: $bcc\r\n";
$headpart .= "X-Mailer: HiQ FormMail Version $this_version\r\n";
$headpart .= "Content-Type: multipart/mixed;\r\n\tboundary=\"$boundary\"\r\n";
$msgpart = "This is a multi-part message in MIME format.\r\n";
$msgpart .= "\r\n--$boundary\r\n";
$msgpart .= "Content-Type: text/plain; charset=ISO-8859-1\r\n";
$msgpart .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
$msgpart .= "$content\r\n";
for($i = 0; $i < count($attachuser); $i++) {
$msgpart .= "\r\n--$boundary\r\n";
$fname = basename($attachuser[$i]);
$msgpart .= "Content-Type: $attachtype[$i]; \r\n\tname=\"$fname\"\r\n";
$msgpart .= "Content-Transfer-Encoding: base64\r\n";
$msgpart .= "Content-Disposition: attachment; filename=\"$fname\"\r\n\r\n";
$fcontent = fread(fopen($attachtemp[$i], "r"), filesize($attachtemp[$i]));
$fcontent = chunk_split(base64_encode($fcontent));
$msgpart .= "$fcontent\r\n";
}
$msgpart .= "\r\n--$boundary--\r\n";
} else {
$msgpart .= "$content\r\n";
}
if(!mail($recipient, $subject, $msgpart, $headpart)) {
deleteTempFiles();
issueSingleError("An undetermined error occured while attempting to send mail.");
}
deleteTempFiles();
}
?>
________________
Config file:
# This is a HiQ Formmail configuration file - ver 1.0
# The operation of HiQFM.php is controled by the values contained here.
# The form is [directive] value (multiple values are entered 1 per line)
# Multiple values are entered 1 per line.
[recipient] XX@XX
[bcc]
# --NOTE -- To allow any file type set value to 'all' as in...
# [valid_attach_types] all
[valid_attach_types] image,TExt
# Allow only desired file extensions
[valid_attach_extensions] txt,js
[valid_attach_extensions] gif,jpg,pdf,png
# List of file extentions which are not allowed.
# Default list is bat,com,exe,scr,vbs,vbe,js,reg,pcd,inf,plf and pcd
# Add additional here - a comma seperated list
[non_valid_extensions] bat,com,exe,scr,vbs,vbe,js,reg,pcd,inf,plf and pcd
#list of required form fields -- multiple are entered 1 per line as in:
#[required_fields] field1
#[required_fields] field2
[required_fields] docket
[required_fields] email
# To require attachment(s) set to yes
#[require_attach] none
# Banned emails, email addresses of people who are blocked from using the script.
# Ex. *@somedomain.com,user@domain.com,etc@domains.com
[banned] none
#--------------------------------------
# Items below only accept single values.
#--------------------------------------
# Environment report is used to include information about the form user.
# To activate an item change to yes.
[HTTP_HOST] no
[HTTP_REFERER] no
[BROWSER] yes
[REMOTE_ADDR] yes
# The subject of your email
[subject] Form Submission, HiQFM.. and still....
# By default blank fields not sent - to change set to yes.
[send_blank_fields] yes
# Html file to redirect the user to after form is processed.
[redirect]
http://XX.XX/form/thankyou.html
# File to be emailed to the form submitter.
[auto_responder] none
# Header/footer files -- wrap output to blend with site design.
[er_header_file] er_header_def.htm
[er_footer_file] er_footer_def.htm
[header_file] header_def.htm
[footer_file] footer_def.htm
# Applies to allowed size for attached files.
[MAX_FILE_SIZE] 1000000
# Items below apply only to Safe Mode operation.
# The directory defined here MUST be in(or under) the same directory as HiQFM.php
# and have world write permissions (CHMOD 777).
[safemode_temp_dir] TEMP_FILES
# For Safe Mode set this to yes.
[safe_mode] no