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.
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.";
}
?>
See this…
> mail("contact@mysite.com","
I could not under stand what u have said
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
Ya, That I know. I just changed that here for not spamming my email, that is not the problem