Menu

Email Based on Form Field

Help
2009-07-20
2013-06-03
  • Lyndon Dunville

    Lyndon Dunville - 2009-07-20

    So all the Forms work great, I just thought I would start out with that, BUT.  I would like to know if you can help me with this, i've tried looking around, but no luck.  I want to be able to access the Form MYSELF, and send an automatically Filled email, Based on what I enter into a field.

    What I want is, when I enter, dune44@t-and-a.host22.com, I want the email to be sent there, This is what I have tried so far, and it's not going through.

    <?php

    $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));

    $mysubject="{T&A} Recruitment";

    mail("['field_2']",$mysubject,"phpFormGenerator - Form submission","

    Hello " . $_POST['field_1'] . "

    This is {T&A}Postulio

    I'm just emailing you to tell you that
    you have been Accepted into the {T&A} clan.

    There is only 1 thing left to do,

    Copy this link into your Browser, and Fill out all the Needed Information

    Now go Introduce your self on the forums, and play a game or two,
    but most of all have fun! 
    ");

    include("confirm.html");

    ?>

     
    • TNTEverett

      TNTEverett - 2009-07-20

      Make this change:

      mail($_POST['field_2'],$mysubject,"phpFormGenerator - Form submission","

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.