I used this for a lot of my sites, I just have one problem. I referred someone to this script and they liked it...only problem they're having trouble understanding they have to copy the email and start a new one.
I just want to know what code do I have to enter to make people's emails as the reply email instead of my system email.
This is perfect for my website, but I also host one website under my current hosting account and I set them up one and it has the same system email.
If this could be done, I'd be very happy and continue to refer your guys form to people.
Thanks,
Ace
This is probably the most useful script for people who own websites.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
mail(
$_POST[field_8]
,"phpFormGenerator - Form submission","Form data:
Consider this:
Someone detects that they can send anyone an email anonymously by filling your form and putting anyone'e email address in the "send to" field.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Use a more formal set of variables for every field in the mail() function.
See the following examples:
mail($recipient, $subject, $mail_body, $header);
I used this for a lot of my sites, I just have one problem. I referred someone to this script and they liked it...only problem they're having trouble understanding they have to copy the email and start a new one.
I just want to know what code do I have to enter to make people's emails as the reply email instead of my system email.
This is perfect for my website, but I also host one website under my current hosting account and I set them up one and it has the same system email.
If this could be done, I'd be very happy and continue to refer your guys form to people.
Thanks,
Ace
This is probably the most useful script for people who own websites.
<?php
$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
mail("email@email.com","phpFormGenerator - Form submission","Form data:
Type of Quote: " . $_POST['field_1'] . "
Full Name: " . $_POST['field_2'] . "
Company: " . $_POST['field_3'] . "
Address: " . $_POST['field_4'] . "
City: " . $_POST['field_5'] . "
State: " . $_POST['field_6'] . "
Phone Number: " . $_POST['field_7'] . "
E-mail Address: " . $_POST['field_8'] . "
Best time to call: " . $_POST['field_9'] . "
Comments: " . $_POST['field_10'] . "
Type of Service: " . $_POST['field_11'] . "
powered by phpFormGenerator.
");
include("confirm.html");
?>
Where and what would I add to make the persons email come up as the reply in a email.
Not that I approve, but here it is!
mail(
$_POST[field_8]
,"phpFormGenerator - Form submission","Form data:
Consider this:
Someone detects that they can send anyone an email anonymously by filling your form and putting anyone'e email address in the "send to" field.
Use a more formal set of variables for every field in the mail() function.
See the following examples:
mail($recipient, $subject, $mail_body, $header);
Find this on this link:
http://www.php.net/mail
I got a error
Oh, my email was left out.
Nevermind, I fixed it. Thank you for the help. I need to learn php and I will look into your advice.