Results 1 to 8 of 8

Thread: mail form with image attachment

  1. #1
    Join Date
    Jul 2007
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default mail form with image attachment

    i have a form with 18 data fields like name, age, sex, date of birth, adress, contact number, etc........

    and i have one more field for photo attachment.

    i want this form details with attached image should come to my mail @gmail.com

    can anybody give me the source code to solve this.

    and same time i want solution for sending form details and 3 attached images to my mail @ gmail.com

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Here's a good place to start: http://www.php-mysql-tutorial.com
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #3
    Join Date
    Jul 2007
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thx and this is wont help me bcoz i already gone through it. plz anybody help

  4. #4
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    1. We won't right full scripts. We can help you through it, not just "gimme the source code" We're not slaves.
    2. Learn PHP yourself.
    3. Use Google. It has thousands of scripts for this.
    4. At least ATTEMPT to write SOME of it yourself.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  5. #5
    Join Date
    Jul 2007
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hello mr. tech_suport
    i know google and all have lot to learn. and i know how to learn PHP.
    ok i have the source code
    for mail form here iam seeking solution top mail a form with attachment
    if u know the solution tell us else keep ur mouth shut and stand away read whts going here ok
    bye

  6. #6
    Join Date
    Jul 2007
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    anybody there to solve it

  7. #7
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    if u know the solution tell us else keep ur mouth shut and stand away read whts going here ok
    Excuse me? Have you got a problem? We're HELPING you. Not DOING it for you. Period.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  8. #8
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    http://www.php.net/manual/en/function.mail.php

    If you read through the information there, you should be able to create a script that you want. It isn't too difficult to do most of that, and there is information on each step on the page.

    Set the form's action to the PHP page with the script to send the email. Use method="post" (or get, if you want the information to appear in the address bar).

    $_POST['fieldname'] will be the value of any field sent.

    Use that to generate the subject, body and email fields, as well as headers.

    For the attachment, this will need to be sent as an attachment, and you can find some information about that in the user posts on the php.net entry on mail().

    In short, use:
    mail($to,$subjct,$body,$headers);

    Where $to is the email, $subject is the subject line and $body is the body text.
    $headers will be the various special instructions, such as From, Reply-to, setting the content type as html, or, as you want, adding an attachment.

    As tech_support has said, you should start writing this script yourself. If you have a question, we'll do our best to answer, but you can't start flaming people for not writing an entire script, when you haven't even started yourself. If you do get stuck, ask, after you have something as a base.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •