noob question


Posted on 16th Feb 2014 07:03 pm by admin

i traying to do a php form with auto replay for both(me and the user who send me a mail),

a using this code

Did you know?Explore Trending and Topic pages for more stories like this.
Code: <?php
$contact_name = $_POST['emp'];
$contact_email = $_POST['mail'];
$contact_subject = $_POST['nomw'];
$contact_message = $_POST['tele'];



if( $contact_name == true )
{
$sender = $contact_email;
$receiver = "myemail@myhost.com";
$client_ip = $_SERVER['REMOTE_ADDR'];
$email_body = "Name: $contact_name nEmail: $sender nnSubject: $contact_subject nnMessage: nn$contact_message nnIP: $client_ip nn agradecemos o seu intresse no WMC 2010.nn para concluir o seu registo utilize o link....";

$extra = "From: $senderrn" . "Reply-To: $sender rn" . "X-Mailer: PHP/" . phpversion();




if( mail( $receiver, "Flash Contact Form - $contact_subject", $email_body, $extra ) )
{
echo "success=yes";
}
else
{
echo "success=no";
}
}
?>
how i can editt this code to send one copy to me and other to the preson who submited the form??
No comments posted yet

Your Answer:

Login to answer
89 Like 8 Dislike
Previous forums Next forums
Other forums

Progress bar tracking file downloads
Hey guys, was wondering if there was a way to track how far a file has been downloaded. I know there

Character Sets/Collations Stuff
Can someone please give me a check list of things I must do to setup all the charset stuff for my ph

CRM?
I think that's what they're called. Customer Management System? Anyway. Is there any good free ones

Extracting URL pointer within XML tag
Hi.

I'm trying to extract text between two quotation marks in XML. For example, I want to ex

how can i expire the submitted page using session.
hi,
i'm new to php world.
i'm using "post" method.
when i submit it,data goes to

Filtering Tables
Hello Thanks for any help any one can give Im very new to PHP..

I need to pull data for clien

Help with lottery style system?
I'm working on a currency system for forums and it is going to have a type of lottery system built i

insert Multiple rows into the table from that table data
Hi All,

I have a requirement like to insert mulitple rows into the table from that

regex for quoted text within a string
I am still getting the hang of regex expressions, but I cant seem to figure out how I would escape q

Multiple WHILE loops help
Hi there. I'm writing an application that is pulling and displaying results for real estate listing

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash