Menu

Form Data is Stored in Database but not......

Help
2009-09-29
2013-06-03
  • Pary Abdul Muhaymin

    Form Data is Stored in Database but form data is not sending to mail box. Mail Box has no Anti Spam, or any other feature. I Have Given Catch all opion too for catching all mails. But not recieving mails from form.

    This is my processor.php

    <?php

    $where_form_is="http://".$_SERVER.strrev(strstr(strrev($_SERVER),"/"));

    session_start();
    if( ($_SESSION==$_POST) && (!empty($_POST)) ) {
    include("config.inc.php");
    $link = mysql_connect($db_host,$db_user,$db_pass);
    if(!$link) die ('Could not connect to database: '.mysql_error());
    mysql_select_db($db_name,$link);
    $query = "INSERT into `".$db_table."` (field_1,field_2,field_3,field_4,field_5) VALUES ('" . $_POST . "','" . $_POST . "','" . $_POST . "','" . $_POST . "','" . $_POST . "')";
    mysql_query($query);
    mysql_close($link);

    mail("contact@mysite.com","phpFormGenerator - Form submission","Form data:

    Name: " . $_POST . "
    E-mail: " . $_POST . "
    Phone Number: " . $_POST . "
    Message: " . $_POST . "
    Subject: " . $_POST . "

    powered by phpFormGenerator.
    ");

    include("confirm.html");
    }
    else {
    echo "Invalid Captcha String.";
    }

    ?>

     
  • BREZ

    BREZ - 2009-09-29

    See this…

    > mail("contact@mysite.com","

     
  • Pary Abdul Muhaymin

    I could not under stand what u have said

     
  • BREZ

    BREZ - 2009-09-29

    In your processor code above it has this line
    "mail("contact@mysite.com","phpFormGenerator - Form submission","Form data:"

    This bit…
    contact@mysite.com       Should be YOUR EMAIL address

     
  • Pary Abdul Muhaymin

    Ya, That I know. I just changed that here for not spamming my email, that is not the problem

     

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.