Log in

View Full Version : PHP form help



chuco61
12-18-2008, 04:32 PM
I read the other post. It was informative

This is the form im working with:
http://mmgrates.isoars.com/fingerprint.html

i would like there to be one more text input area so that anyone can write their personal email in and after they hit submit it will go to their email. But i also want a default copy sent to rcortez@svnewspapers.com

is it possible for someone to quickly code this? im not good with php

Nile
12-18-2008, 11:42 PM
Well, you would need to have the layout of the email and that kinda stuff set up. But to send an email you would probably use the mail() function.
http://us.php.net/mail

I also think that this should work if you put it in to your code now:

<?php
$usersEmail = $_POST['email']; //method for getting the users email
$yourEmail = "yourRealEmail@yourRealEmailsDomain.com";
$to = $usersEmail;
$subject = 'Type subject here'; //subject
$message = "Hello"; //message
$headers = "From: $yourEmail" . "\r\n";
$headers .= "Bcc: $yourEmail" . "\r\n" .

mail($to, $subject, $message, $headers);
?>
But you'd have to change a few things to make it right. I hope this helps you.