Upload / email form

hello everyone. i made an upload files page with a browse
button and text fields for the client to put their information in.
how can i make the "submit" button upload the file to my server AND
send me the email at the same time?? the uploading part works but
not the email part. please help! thanks!!

I am using html for the form and php for the actual uploading
to work. Here is the form I created:
<form enctype="multipart/form-data" action="uploader.php"
method="POST">
<span class="style1">
<input type="hidden" name="MAX_FILE_SIZE"
value="100000000" />
<input type="hidden" name="redirect"
value="greeny_blu/index.html" />
</span>
<table width="565" height="364">
<tr>
<td colspan="2"><div align="center"
class="style9">
<div align="left">Upload Files</div>
</div></td>
</tr>
<tr>
<td colspan="2"><div align="center"
class="style10">
<p align="left">Fill out the form below in order to
send us your print-ready files.<br />
Please make sure to zip or compress your files and do not
send any <br />
files larger than 15mb.</p>
<p align="left">Thank you for choosing Level
Graphics!</p>
</div></td>
</tr>
<tr>
<td width="148"><label for="companyname">
<div align="right" class="style20">Company
Name:</div>
</label></td>
<td width="405"><label
for="companyname"></label>
<input type="text" name="companyname" id="companyname"
/></td>
</tr>
<tr>
<td><div align="right" class="style20">Contact
Name:</div></td>
<td><label for="contactname"></label>
<input type="text" name="contactname" id="contactname"
/></td>
</tr>
<tr>
<td><div align="right" class="style20">E-mail
Address:</div></td>
<td><label for="email"></label>
<input type="text" name="email" id="email"
/></td>
</tr>
<tr>
<td><div align="right" class="style20">Telephone
Number:</div></td>
<td><label for="phonenumber"></label>
<input type="text" name="phonenumber" id="phonenumber"
/></td>
</tr>
<tr>
<td><label for="message">
<div align="right"
class="style20">Message:</div>
</label></td>
<td><label for="message"></label>
<textarea name="message" id="message" cols="45"
rows="5"></textarea></td>
</tr>
<tr>
<td height="41"><div align="right"><span
class="style20">
<label>
<label for="upload" class="style10">
Upload Files:</span></div>
<div align="center"></div>
</label></td>
<td><label for="upload"></label>
<input name="uploadedfile" type="file" /></td>
</tr>
<tr>
<td colspan="2"><label>
<div align="center">
<p align="left" class="style19">When uploading files,
do not click the &quot;Upload File&quot; button more than
once.<br />
Please be patient, larger files may take a while to
send.</p>
<p align="left" class="style19">
<input type="submit" name="submit" id="submit"
value="Upload File" />
</p>
</div>
</label></td>
</tr>
</table>
<p class="style1"> </p>
<span class="style10">By sending us your file you have
agreed to our <a href="terms.html">Terms &amp; Conditions
</a></span>
<p class="style10"> </p>
</FORM>
I copied the php code from an online tutorial. Here it is:
// Where the file is going to be placed
$target_path = "uploads/";
/* Add the original filename to our target path.
Result is "uploads/filename.extension" */
$target_path = $target_path . basename(
$_FILES['uploadedfile']['name']);
$_FILES['uploadedfile']['tmp_name'];
$target_path = "uploads/";
$target_path = $target_path . basename(
$_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'],
$target_path)) {
echo "The file ". basename(
$_FILES['uploadedfile']['name']).
" has been uploaded";
} else{
echo "There was an error uploading the file, please try
again!";
If you want to view to actual site then go to
www.levelgraphics.biz/greeny_blu/upload_files
Thank you!!!

Similar Messages

  • Can I create an email form that includes a field for uploading and image?

    I'd like to create an email form in Muse that allows people to submit the usual text but also allows them to browse for and upload an image that would be emailed (attached or inline) to me along with the text.
    Does anyone know if there's a way to do that directly in Muse?
    Thanks.

    Which form?
    Many of the forms are created with LiveCycle ES so it might be possible to edit the form with Acrobat X Professional. If you have the data in an SQL database, you could possibly create a data connection and import the data into the form and save a copy of the completed form. You can also use the Acrobat JavaScript 'importTextData' to import a row of data from a tab delimited data file.
    You might want to talk to other Real Estate professionals to see how they are going do this. If you have a property management program, that program might have an update to perform this task.

  • Is there a way to add an upload option to an email form? For example upload a "cad file" or "pdf"?

    Hi Is there a way to add an upload button to an email form? I want clients to upload their pdf's or cad files along with their email from the website.
    Thanks in advance!

    Hi,
    If you are using a third Party hosting like Gadaddy, than this cannot be done using Muse webform, but you can use jotform (or many available over the Internet) to create and insert the form in your Muse site. Please check the link here
    http://www.jotform.com/

  • File as attachment in email form

    hi all,
    It would be a great help for me if any one can help me, how
    to send a file( minimum of 300k ) as attachment through a email
    form created in flex....
    please help me ...
    thanks

    hi all i have got a php code which sends attachments via
    mail..... Please help me how to send the file parameters to the php
    via http service send method.... i am placing the php and flex
    codes here please help Sad
    PHP code
    &lt;?php
    $to = '[email protected]';
    $from = $_POST[email];
    $name = $_POST[&quot;name&quot;];
    $subject = $_POST[&quot;title&quot;];
    $emailMessage = $_POST[&quot;message&quot;];
    $message = &quot;\nFrom: $name\nEmail Address:
    $frommail\nContact Number: $phone\n\n $emailMessage&quot;;
    $message = StripSlashes($message);
    $fileatt = $_FILES['fileatt']['tmp_name'];
    $fileatt_type = $_FILES['fileatt']['type'];
    $fileatt_name = $_FILES['fileatt']['name'];
    $headers = &quot;From: $frommail&quot;;
    if (is_uploaded_file($fileatt)) {
    $file = fopen($fileatt,'rb');
    $data = fread($file,filesize($fileatt));
    fclose($file);
    $semi_rand = md5(time());
    $mime_boundary =
    &quot;==Multipart_Boundary_x{$semi_rand}x&quot;;
    $headers .= &quot;MIME-Version: 1.0\n&quot; .
    &quot;Content-Type: multipart/mixed;\n&quot; .
    &quot;
    boundary=\&quot;{$mime_boundary}\&quot;&quot;;
    $message = &quot;This is a multi-part message in MIME
    format.\n\n&quot; .
    &quot;--{$mime_boundary}\n&quot; .
    &quot;Content-Type: text/html;
    charset=\&quot;iso-8859-1\&quot;\n&quot; .
    &quot;Content-Transfer-Encoding: 7bit\n\n&quot; .
    $message . &quot;\n\n&quot;;
    $data = chunk_split(base64_encode($data));
    $message .= &quot;--{$mime_boundary}\n&quot; .
    &quot;Content-Type: {$fileatt_type};\n&quot; .
    &quot;
    name=\&quot;{$fileatt_name}\&quot;\n&quot; .
    &quot;Content-Transfer-Encoding: base64\n\n&quot; .
    $data . &quot;\n\n&quot; .
    &quot;--{$mime_boundary}--\n&quot;;
    }else echo &quot;File error! &quot;;
    mail($to, $subject, $message,$headers);
    ?&gt;
    Flex code...
    &lt;?xml version=&quot;1.0&quot;
    encoding=&quot;utf-8&quot;?&gt;
    &lt;mx:Application xmlns:mx=&quot;
    http://www.adobe.com/2006/mxml&quot;
    viewSourceURL=&quot;srcview/index.html&quot;
    creationComplete=&quot;init();&quot;&gt;
    &lt;mx:HTTPService id=&quot;httpService&quot;
    url=&quot;
    http://jibysubhash.x10hosting.com/jibysk/sendmail.php&quot;
    method=&quot;POST&quot;&gt;
    &lt;mx:request &gt;
    &lt;name&gt;{txtname.text}&lt;/name&gt;
    &lt;email&gt;{txtemail.text}&lt;/email&gt;
    &lt;phone&gt;{txtphmo.text}&lt;/phone&gt;
    &lt;title&gt;{txtpost.text}&lt;/title&gt;
    &lt;message&gt;{txtcover.text}&lt;/message&gt;
    &lt;/mx:request&gt;
    &lt;/mx:HTTPService&gt;
    &lt;mx:Script&gt;
    &lt;![CDATA[
    private var file:FileReference = new FileReference();
    private function init():void
    file.addEventListener(Event.SELECT, selectHandler);
    private function selectHandler(event:Event):void
    private function browse(event:MouseEvent):void
    var filefilter:FileFilter = new FileFilter(&quot;Resume
    Files&quot;,
    &quot;*.zip;*.doc;*.pdf;*.txt;*.rar;*.docx&quot;);
    file.browse([filefilter]);
    ]]&gt;
    &lt;/mx:Script&gt;
    &lt;mx:Panel id=&quot;panel1&quot;
    width=&quot;691&quot; height=&quot;665&quot;
    layout=&quot;absolute&quot; title=&quot;Apply for the
    job&quot; &gt;
    &lt;mx:Form x=&quot;0&quot;
    y=&quot;0&quot;&gt;
    &lt;mx:FormItem fontWeight=&quot;bold&quot;
    color=&quot;#000000&quot; id=&quot;nam&quot;
    label=&quot;Name : &quot;&gt;
    &lt;mx:TextInput width=&quot;354&quot;
    height=&quot;20&quot; id=&quot;txtname&quot;
    /&gt;
    &lt;/mx:FormItem&gt;
    &lt;mx:FormItem fontWeight=&quot;bold&quot;
    color=&quot;#000000&quot; id=&quot;mail&quot;
    label=&quot;Email : &quot;&gt;
    &lt;mx:TextInput width=&quot;354&quot;
    height=&quot;20&quot; id=&quot;txtemail&quot;
    /&gt;
    &lt;/mx:FormItem&gt;
    &lt;mx:FormItem fontWeight=&quot;bold&quot;
    color=&quot;#000000&quot; id=&quot;phone&quot;
    label=&quot;Phone/mobile : &quot;&gt;
    &lt;mx:TextInput width=&quot;354&quot;
    height=&quot;20&quot;
    id=&quot;txtphmo&quot;/&gt;
    &lt;/mx:FormItem&gt;
    &lt;mx:FormItem fontWeight=&quot;bold&quot;
    color=&quot;#000000&quot; id=&quot;post&quot;
    label=&quot;Post applied : &quot;&gt;
    &lt;mx:TextInput width=&quot;477&quot;
    height=&quot;20&quot; enabled=&quot;false&quot;
    editable=&quot;false&quot; id=&quot;txtpost&quot;
    text=&quot;test mail&quot;/&gt;
    &lt;/mx:FormItem&gt;
    &lt;mx:FormItem fontWeight=&quot;bold&quot;
    color=&quot;#000000&quot; id=&quot;upload&quot;
    label=&quot;Upload resume : &quot;&gt;
    &lt;mx:Button label=&quot;Browse&quot;
    id=&quot;bro&quot;
    click=&quot;browse(event);&quot;/&gt;
    &lt;/mx:FormItem&gt;
    &lt;mx:FormItem fontWeight=&quot;bold&quot;
    color=&quot;#000000&quot; id=&quot;cover&quot;
    label=&quot;Cover Letter : &quot;&gt;
    &lt;mx:TextArea width=&quot;507&quot;
    height=&quot;350&quot;
    id=&quot;txtcover&quot;/&gt;
    &lt;/mx:FormItem&gt;
    &lt;mx:FormItem label=&quot; &quot; &gt;
    &lt;mx:Button label=&quot;Send&quot;
    id=&quot;applynow&quot;
    click=&quot;httpService.send();&quot; /&gt;
    &lt;/mx:FormItem&gt;
    &lt;/mx:Form&gt;
    &lt;mx:Label x=&quot;210&quot;
    y=&quot;125&quot; text=&quot; &quot;
    maxWidth=&quot;300&quot;
    id=&quot;statuss&quot;/&gt;
    &lt;/mx:Panel&gt;
    &lt;/mx:Application&gt;

  • Upload Email in to Sharepoint Site

    hi
    can we do Email upload  in sharepoint site?..
    if yes,pls guide me to upload..
    Thanks
    arWINdh

    OOB Options:
    Some other OOB options are:
       - Drag/Drop to Discussion Forum (Note: Email Attributes such as From are not captured correctly)
       - Drag/Drop to File Explorer View of SharePoint Library (Note: Email Attributes and additional Column mapping is not captured)
       - Email enable library (Emails are stored in .eml format)
       - Exchange Server /SharePoint Server connection (Server side driven, IT over head, no capture of customer metadata)
    Commercial solution:
    There number of commercial products in the market providing a solution to your requirement. (Note: I am affiliated with OnePlaceMail)
    You are very welcome to download a free time expired trial of OnePlaceMail from
    www.scinaptic.com/oneplacemail . 
    Some of the capabilities provided by OnePlaceMail are:
      + Drag/Drop emails form Outlook to SharePoint
             - Capturing email attributes such as To, CC, From, subject, etc...
             - Allow for SharePoint Column information to be captured
             - stored in .msg format
      + Drag/Drop attachments from Outlook to SharePoint
      + Save File from File Explorer to SharePoint 
      + Save Files from Office (word, Excel and PowerPoint)
      + Expose SharePoint inside Outlook
      + Full API for creating end to end solutions

  • Email form and not XML

    Hello,
    How do I set the email button so that the form is mailed and not the data in XML format?
    Thank you.

    Hi Chris,
    Thanks so much for the excellent advice. It was a breeeze once I knew what to do, and clicking on the XML Source Tab brought me right to the line of code that needed to be changed. I uploaded the form to our web site and sent it to myself and the PDF arrived instead of XML.
    I do have another question. I can't find settings for Reader Extensions anywhere. I'm guessing this isn't an issue as long as the form is on our web site, but from what you say it seems like if I email the form to our users and they have it on their desktop and try to send it it won't go unless I have the RE settings correct.
    I'm a novice and trying to learn so I appreciate your patience.
    Thanks.

  • Creating an email form in iweb

    Hello,
    I would like to create an email form in one of my websites, the type in which you ask a question and sends you an email directly to your email address without having to open mail.
    How do I go about it?
    Thank you
    Message was edited by: Allanfrance

    Hello
    I checked the services other members posted. All looks cool, but I would recommend you if you are interested to create this form yourself.
    My idea is to create a predesigned form, converted to your needs and post it on the web then use simply an iframe to display at your iweb.
    1-download trial Rapid Weaver.
    create a contact form and publish to a folder.
    open it in dream weaver. delete everything you don't need. -Side bars etc.
    and save it.
    2- upload contact folder on your site
    3-IWEB
    open iweb widgets
    copy and paste following code
    <IFRAME SRC = "*<a class="jive-link-external-small" href="http://www.YOURSITE/Contact/index.php">http://www.YOURSITE/Contact/index.php" WIDTH="460px" HEIGHT="405px" FRAMEBORDER="0" --if "0" no border, otherwise "1" with border MARGINWIDTH ="0px" MARGINHEIGHT="0px" SCROLLING="no" --"no" no scrolling bar, "yes" show always, "auto" showed when need > Your browser does not support IFRAME </IFRAME>
    Change bold, and enhance width and height.
    it is very simple, fast you can be done in 10 minutes. advantage is that you don't have to pay for any services.
    It is not the best solution, but next version of Iweb should have more enhancements like this
    Regards
    MIKE

  • Contact / email form problem

    I am adding a contact / forward email form to a website I am building and ran into a snag. I have the Adobe Classroom in a book for AS3, and in chapter 13 it gives me the code, along with a start file and completed file. The problem is, the completed file doesn't work. The code links up to a web address that has the PHP file that generates the email. Has anyone else had a problem with this? I have access to a server running PHP and uploaded it there and redirected the AS code in the example and still nothing. And yes, I have checked the book website for updates. Relevant code follows.
    Thanks,
    Jeff
    var variables:URLVariables = new URLVariables();
    var mailAddress:URLRequest = new URLRequest("http://www.turnkeycreations.com/clients/tgc/email.php");
    name_txt.tabIndex = 1;
    email_txt.tabIndex = 2;
    subject_txt.tabIndex = 3;
    note_txt.tabIndex = 4;
    print_btn.tabIndex = 5;
    send_btn.addEventListener(MouseEvent.CLICK, onSubmit);
    function onSubmit(e:Event):void {
        variables.sName = name_txt.text;
        variables.sEmail = email_txt.text;
        variables.sMessage =variables.sName + " has sent this note:" + "\n\n"+note_txt.text;
        variables.sSubject = subject_txt.text;
        mailAddress.data = variables;
        mailAddress.method = URLRequestMethod.POST;
        sendToURL(mailAddress);
        feedback_txt.text = "Your mail has been sent";
    PHP:
    <?php
    $sendTo = $_POST["sEmail"];
    $subject = $_POST["sSubject"];
    $headers = "From: " . $_POST["sName"] . "<" . $_POST["sEmail"] .">\r\n";
    $headers .= "Reply-To: " . $_POST["sEmail"] . "\r\n";
    $headers .= "Return-path: " . $_POST["sEmail"];
    $message = $_POST["sMessage"];
    mail($sendTo, $subject, $message, $headers);
    ?>

    I guess technically it does work, I sent it to another address to test it again. The problem is,
    the address I used first is (not real) [email protected]  .  It has a period before the first and last name. Could this be the problem? If so, how do I fix?

  • Hello, I am trying to build a pizza menu where i can click on a pizza pic or link and than this selction is added to a muse email form, without the users need to retyp it. Anybody know how to do that? thank you for your help Peter

    I would like to know how to add a selection form a website to an muse email form with out the user to having to enter it but only clicking on the selected item. This is for a pizza menu.

    You can try this :
    http://www.qooqee.com/adobe-muse-widgets/astrolabe-muse-menu
    Thanks,
    Sanjit

  • BP address data in  Email form

    Hello,
    When I create a campaign with communication channel as "email", how can I automatically add business partner address data ( Those BP's which are in the target group) when sending emails?
    Is there a standard functionality available?
    thanks in advance.

    Hi,
    You can use the Personalized mail functionality of the CRM for adding BP address in the email form. This is the standard functionality of the CRM 5.0.
    In t code CRMD_EMAIL while creating the text of the mail form drag and drop address attributes from the left hand side Object / Attribute Business partner.
    In Business partner Object you will get all the fields of the Business Partner including Street1 street2 City, POBox etc. Drag and drop these attributes wherever you want on the mail form text.
    Hope this will help.....
    Rgds
    Mallikrjun

  • How do I upload a form to my website using form central?

    How do I upload a form to my website using form central?

    Using Form Central you can distribute your form as a web-based HTML form, a fillable PDF form, or both.
    You can copy the URL or the embed code for the form and post it on your website. When a respondent clicks the link, the fillable form opens in a browser window.
    The only exception: These options don’t apply to fillable PDF forms that you imported into Adobe FormsCentral.
    Please refer to the article http://help.adobe.com/en_US/formscentral/using/WSd789abd336388b16-9d277de12da94c8037-8000. html#WS49f7d3dd80da808f7c9fcbc138d00a7399-8000.

  • Error in Transaction SFP when trying to upload a form (note 1387091)

    Hiho
    I'm trying to upload a form that was attached to note 1387091 with transaction SFP. When I try to upload the form I get the following error message:
    Error occurred in SAFP UI
    My procedure is the following one: I go to transaction SFP, type in the name of the form (/SAPSLL/PF_CH_PANNENLSG_EXP),  click on "Utilities - Upload Form Object", browse to the form and I click on ok.
    ADS is working fine.
    Hope someone can help...
    Thanks in advance.
    Regards
    Marco

    Hi Mukesh
    I downloaded newest ALD and installed it on my computer and on the server.
    Unfortunately the error still persists.
    Do I have to start the ALD in some matter? I tried the upload still with my SapGui.
    Regards
    Marco

  • How can i transfer all my datas and email form old Mac G5 to new iMac ?

    How can i transfer all my datas and email form old Mac G5 to new iMac ?

    Generally Mugration Assistant will suffice importing all Data ito a new user, but you can manually import it...
    Users/YourUserName/Library/Mail
    Users/YourUserName/Library/Mail Downloads
    (Could be a different folder here if you chose such in Mail Prefs)

  • Little help with making an email form.

    can any of you lovely, lovely people point me in the
    direction of a good Dreamweaver CS3 tutorial on how to make an
    email form. Preferably one with a "conform email address" text
    field.
    Thanks all!
    P.S. I have tried looking.

    There is god general training available at www.lynda.com .
    Its $25 a month for online video viewing. The title is called
    Dreamweaver CS3 - Beyond the Basics.
    I also would recommend a free form mail solution like
    www.tectite.com which I have used before. It is more powerful that
    the spry widget in dreamweaver, but is on the server side and not
    the user application side.

  • How to upload email from outlook to a sharepoint document library programatically.

    Hi ,
    I have a requirement where I need to create a outlook plugin which will upload selected emails to sharepoint document library. I am able to hold email using by creating the object of outlook.item.  but could n't find a way to upload created com object
    in to sharepoint library.
    I need to use webservice to upload email to the document library.
    can some one please help me with this?
    Thanks.

    Hi,
    Base on the description, you want to upload email from outlook to a sharepoint document library programatically.
    We need to do it using Web Services, there's a purpose built web service here http://cecildt.blogspot.com/2010/10/upload-documents-to-sharepoint-2010.html‎
    for uploading documents.
    The other alternative is using email enabled document libraries
    https://www.nothingbutsharepoint.com/sites/itpro/pages/how-to-setup-mail-enabled-document-libraries-in-sharepoint-2010-part-4.aspx
    Best Regards,
    Linda
    Li

Maybe you are looking for

  • Mac Mini running very slowly

    Hi All, I am using a Mac Mini at work and it is running very slowly at the moment.  General tasks are ok, but anythng video related (youtube is a nightmare to use) is super slow, and when closing it down it often takes several attepts as it seems to

  • Flash Thumbnails in Bridge

    Will Bridge CS3 now show .fla and .swf thumbnails?

  • Can I drag and drop an image into Photoshop

    hello, as a first time user ive using photoshop on a mac at school. i just downloaded photoshop on my pc. i cant insert my image onto photoshop. the way we do it in class is drag the image to the ps icon and it will open with the pic. please help and

  • Logic crashing out

    Not only Logic but also Ableton are crashing out all the time making it impossible to work with. Recently I installed a couple of audio units and also a lame encoder for peak pro so i re traced my steps and removed the most recent audio software inst

  • Assigning a Custom URL to a Blog? Possible?

    Any chance of assigning a custom URL to a specific weblog? For example http://weblog.mycustomerdomain.com