Upload File form php

This tutorial explains how to create an html form for upload file from the computer.This uploaded file is sending as an attachment using the php.

Please refer the tutorials that explains how to send the uploaded file as an attachment and send all the files in a folder as an attachment.

<div class="wrap">
    <h3>Upload File and send as email attachment</h3>
    <form method="POST" name="sendemail" action="sendemail.php" enctype="multipart/form-data"> 
        <div>
            <label for='name'>Name: </label>
            <input type="text" name="name" ><br/>
        </div>
        <div>
            <label for='email'>Email: </label>
            <input type="text" name="email" ><br/>
        </div>
        <div>
            <label for='uploaded_file'>Select A File To Upload:</label>
            <input type="file" name="uploaded_file"></br>
        </div>
        <input type="submit" value="Submit" name='submit'>
    </form>
</div>

Share this Tutorial