form submitting script and help in implementing it .

Discussion in 'PHP' started by nandanamnidheesh, May 9, 2009.

  1. #1
    i have made a html form wch contain .. some data fields, numbers, etc .. and 2 picture uploading fields too ..

    so is there any scripts .. (php or any other language) to send such form to mail.. including uploaded picture and form contents ...
     
    nandanamnidheesh, May 9, 2009 IP
  2. kblessinggr

    kblessinggr Peon

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    PHPMailer-FE is their Form-to-Email version of their php mailer script.

    Google PhpMailer-Fe (I can't post live links yet)
     
    kblessinggr, May 9, 2009 IP
    Weirfire likes this.
  3. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #3
    PHPMailer is a great script. Definitely go for that 1. :)
     
    Weirfire, May 9, 2009 IP
  4. alfa_375

    alfa_375 Active Member

    Messages:
    445
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Is PHPMailer is free script or what? Did you resolve your problem? Otherwise pm me so I might help.
     
    alfa_375, May 9, 2009 IP
  5. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #5
    Yes PHPMailer is opensource.
     
    Weirfire, May 9, 2009 IP
  6. nandanamnidheesh

    nandanamnidheesh Active Member

    Messages:
    376
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #6
    ok thanks frnd .. i will try phpmailer .. it have the option to upload files or attach files ? ..

    i had tried tectile phpformmail script .. it had successfully send form content but dint find option to attach files
     
    nandanamnidheesh, May 9, 2009 IP
  7. nandanamnidheesh

    nandanamnidheesh Active Member

    Messages:
    376
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #7
    ok i found.... "phpmailer-FE" have the ability to attach files ..
     
    nandanamnidheesh, May 9, 2009 IP
  8. nandanamnidheesh

    nandanamnidheesh Active Member

    Messages:
    376
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #8
    some prob !! ...i created form using some online form creation site .. and when i submit ..pictures are uploaded ....it work fine ..but the text content is not get properly .. the only data i got is email .. and some words like .. example .. variables .. etc ...
     
    nandanamnidheesh, May 11, 2009 IP
  9. nandanamnidheesh

    nandanamnidheesh Active Member

    Messages:
    376
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #9
    somebody pls help me ...
     
    nandanamnidheesh, May 12, 2009 IP
  10. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #10
    Can you paste the code in of where the script is going wrong?
     
    Weirfire, May 14, 2009 IP
  11. nandanamnidheesh

    nandanamnidheesh Active Member

    Messages:
    376
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #11

    actually it not showing any error .. when i submit it showing submitted correctly .. and i will get mail which contain attached images and docs but form data not available .. only email address and some other text are available ..
     
    nandanamnidheesh, May 14, 2009 IP
  12. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #12
    Try running

    
    var_dump($_POST);
    
    PHP:
    on the target page and tell me what comes up.
     
    Weirfire, May 16, 2009 IP
  13. nandanamnidheesh

    nandanamnidheesh Active Member

    Messages:
    376
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #13
    i had send u a PM
     
    nandanamnidheesh, May 16, 2009 IP
  14. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #14
    I've sent you an email. It might be an idea if you don't want to show everyone your page to send some "example" code of the form, the output it's giving you and the desired output;

    e.g.

    <form action='target.php' method='POST' enctype='multipart/form-data'>
    Name: <input type='text' name='name' /><br />
    Email: <input type='text' name='email' /><br />
    <input type='submit' value='Go' />
    </form>

    //---target.php---//
    mail($_POST['email'],"Welcome","Welcome to our site " . $_POST['name']);


    Output
    -------

    Welcome to our site $_POST['name']


    Desired Output
    ---------------

    Welcome to our site Stephen




    If you put a bit of effort into describing your problem then people will

    1) Be able to help you better
    2) Know that you are at least putting some time yourself into the problem and not just expecting other people to write all your code.
     
    Weirfire, May 18, 2009 IP