At first you should set your code in a post form cause as you said you want to send a mail with this informations.
After this you can add a input for the Upload wrote a short code for it.
PHP Code:
Upload:<input type="file" name="file">
<input type="submit" name="send" value="Submit">
<?php
if($_POST['send']){
move_uploaded_file($_FILES['file']['tmp_name'],$to);
}
?>
Thats the code for moving your file to add it to a mail you should take a look at "phpMailer".
After this you can take a simple code for adding the file as an attachment
PHP Code:
//Data-Path
$fileName = $_FILES['file']['name'];
$filePath = $_FILES['file']['tmpname'];
$mail->AddAttachment($filePath, $fileName);