Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: PHP
<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 23-Feb-14 14:02pm
Comments
Sergey Alexandrovich Kryukov at 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)



Advertise | Privacy | Mobile
Web04 | 2.8.150305.1 | Last Updated 23 Feb 2014
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100