Click here to Skip to main content
15,896,358 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
<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
Posted
Comments
Sergey Alexandrovich Kryukov 23-Feb-14 19:50pm    
What is it supposed to mean, "link this up"? Sending some form data as mail using PHP is described in many places. What's the problem?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900