Results 1 to 7 of 7

Thread: File Uploads, Form Results

  1. #1
    Join Date
    Feb 2006
    Posts
    21

    Default File Uploads, Form Results

    Hello:
    Need some help.

    1. file uploads are not working after many tries. Here is my code from my html page:

    <form enctype="multipart/form-data" method="post" action="/cgi-bin/formmail.php">
    <input type="hidden" name="recipients" value="scott@bluewaveconcepts.com">
    <input type="hidden" name="subject" VALUE="The Staffing Alternatives Application Page Job ID: <?=$appinfo?>">
    <input type="hidden" name="good_url" VALUE="http://64.57.87.27/thankyou.html">

    And here is the line of code for the attachment box:

    <input type="file" name="uploaded_file" size="40">


    2. when I get the info from the form, there are no line breaks or separations, it is all together as is a continuous sentence. I added a line of code per your doc but it had no effect. It was added to the under the input type=hidden statements above but was removed after it had no effect.

    Please help, thanks.

    I attached my files to look at.
    Attached Files Attached Files

  2. #2
    Join Date
    Jul 2005
    Posts
    175

    Default Re: File Uploads, Form Results

    regarding "2."

    use
    Code:
    <input type="hidden" name="mail_options" value="KeepLines" />
    for more structured emails you also can use a plain.txt or html template



    regarding "1."

    have you set in formmail.php at line 3386 FILEUPLOADS to true?
    PHP Code:
    define("FILEUPLOADS",true); 

  3. #3
    Join Date
    Feb 2006
    Posts
    21

    Default Re: File Uploads, Form Results

    Quote Originally Posted by asket
    regarding "2."

    use
    Code:
    <input type="hidden" name="mail_options" value="KeepLines" />
    for more structured emails you also can use a plain.txt or html template

    >>I dont have this in my html form but will add it

    regarding "1."

    have you set in formmail.php at line 3386 FILEUPLOADS to true?
    PHP Code:
    define("FILEUPLOADS",true); 
    >>Yes this is set in the formmail.php

  4. #4
    Join Date
    Jul 2005
    Posts
    175

    Default Re: File Uploads, Form Results

    i'm sorry, on the quick i've no idea
    till yet i've not used the file upload feature and therefore i am not really trained in it

    but i'll have look on it, maybe later, cause now i've no more time, i'm sorry

  5. #5
    Join Date
    Jul 2005
    Posts
    175

    Default Re: File Uploads, Form Results

    no idea. the enctype seems to be correct.
    as already mentioned, till yet i didn't have used this feature, therefore i've no experience.. i'm sorry.
    for featuring out a solution i would have to gain experience in that accompanied by spending time, which is rather a bad point of time at the time (time, time, )

  6. #6
    Join Date
    Nov 2009
    Posts
    1

    Default Re: File Uploads, Form Results

    ScottR,
    Did you find an answer to the #1 File upload question you had? I have the same problem and have inserted all the same codes.
    If you found a solutions I would love to know it to get my form to work properly.

    Thank you for your help!
    Mia

  7. #7
    Join Date
    Aug 2007
    Posts
    24

    Default Re: File Uploads, Form Results

    ScottR,
    Below is the file upload code I have used with success and without problems. The form is completed and submitted. I get a nicely text formatted response with all the submitted information, the data goes into a .csv file and the submitted gets directed to a "Successful Form Submission" page.
    Hope this helps.


    Code:
    <form method="post" action="http://www.mydomain.com/fbmail/formmail.php" name="SampleForm" enctype="multipart/form-data" onSubmit="rememberinput('fname','lname','company_name','useremail','phone','ext','hear')">
    <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER"> 
    <input type="hidden" name="derive_fields" value="ipaddr = REMOTE_ADDR browser = HTTP_USER_AGENT, referrer = HTTP_REFERER" />
        
    <!-- STEP 6: to send the submitted form back to ??? DOMAIN as a formatted text email enter the name of the 'my-tmpl.txt'template file. -->    
    <input type="hidden" name="mail_options" value="PlainTemplate=my-tmpl.txt,TemplateMissing=n/a,KeepLines" />

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Sending form results in an HTML email
    By russellr in forum HOWTO Guides and Tips
    Replies: 26
    Last Post: 12-Jan-2006, 08:31 PM
  2. File uploads
    By dRiver in forum FormMail Subscription Support
    Replies: 2
    Last Post: 15-Jun-2004, 05:14 AM
  3. Directing Form to File - Need Help
    By rongreen in forum FormMail Subscription Support
    Replies: 13
    Last Post: 02-Mar-2004, 03:53 AM
  4. not so intersting results
    By expisp in forum FormMail Subscription Support
    Replies: 4
    Last Post: 10-Feb-2004, 07:15 AM
  5. Help trying to set up a form to email and send info to file
    By rridsdale in forum FormMail Subscription Support
    Replies: 1
    Last Post: 14-Jan-2004, 02:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •