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

Dynamically allocating the number of rows in a table based on a variable value
Hi,
I have situation here which i cannot resolve, I have a variable temp which stores the num

help with calculations on a flat text file
hello,
I have this code below that is attached to a flat file like this:
Email:LastName:FirstN

problem with php mysql query
Hi guy's...

I'm totally lost here..because don't have any idea how to make a query for grab r

Quick variable question
hey guys/gals,
im trying to write a php script and it works fine as i have it, but i need to set

is_dir() problem
Hello,

I'm buidling a php scripts that dynamically get's subfolders from a specific folder.

Match stored value with the current value in a loop
Hello,

I have a MySQL db were I store articles in.

I have a form to fill these article

upload photo limits
ive got a upload photo script and im just trying to make more secure currently it limits size and as

Passing JS to PHP
So I have the following
Code: <?php
getdetails(?><script type="text/

Data storage spaces in varchar2
Trying to understand what's happening.
I am selecting a value from a table that is defined as c

What am I missing here? Help!
Hello all!. I can't seem to get this working right. Well - it renders right, but something is goin

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