Click here to Skip to main content
15,891,529 members

Link up my contact form

Member 10619358 asked:

Open original thread
<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
Tags: PHP

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



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