I want to make my own form to upload 1 photo and complete some fields and send it to an email using mail()
index.php
<form action="send.php" method="post" enctype="multipart/form-data">
Your name: <input type="text" name="your_name"><br>
Your email: <input type="text" name="your_email"><br>
Your photo: <input type="file" name="your_photo"><br>
<input type="submit" value="Send">
</form>
send.php
<?
$to = "tzolea@yahoo.com";
$subject = "test";
$message = $POST['your_name']."<br>".$POST['your_email'];
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
mail($to, $subject, $message, $headers);
?>
How can I send the uploaded photo as attachaments?