<form method="POST" action="sendfile.php" enctype="multipart/form-data" class="form">
<ul>
<li>
<img style="-webkit-user-select: none; float: left;padding: 13px;" src="/lock.png"> <input name="pic" id="file" title="click to choose the file that you wish to send to your friend, remember you can only send up-to 2GB worth of file." type="file" required="">
</li>
<li>
<label for="title">Your Email</label>
<input type="text" id="email" title="Place your email into this box, this is so your friend knows who has sent them a file." name="email" placeholder="Type your email here" required="">
</li>
<li>
<label for="title">Friends Email</label>
<input type="text" id="friende" title="Type your friends email into this box, make sure you have the right email or they will not get the file your about to send them." name="title" placeholder="Type your friends email here" required="">
</li>
<li>
<label for="title">Short Message</label>
<textarea rows="5" name="msg" title="If you have a short message for your friend then you can type it here, this is not a required feild so you don't need to send a message with the file." resize="none" id="msg" placeholder="Type a message for your friend here..." cols="33"></textarea>
</li>
</ul>
<input type="submit" title="Woop! Click this button to transfer your file to your friend." value="Transfer file" name="upload">
</form>
I need to link this up please with a PHP file, that then sends the attatched file as an attachment to the email along with a message