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

script and html conflict in trying to create a header.
I have an error is occurring because of an html webpage with a "php require" at the top of

some query on multilingual website
Hi all,

Which is the simplest and easiest method to make a website multilingual,
is it put

Do not allow posting of whitespace
Currently the script below works if the user does not type a name/message, but if i create a whitesp

list files from folder, only one for each date
I have many files in a folder and wish to only list one of each date

these are the file names

timed header image rotation
I have a joomla site and I was trying to setup a rotating image based on timing NOT just refreshing

Concatenate two strings ???
I have string one $string1 and another $string2.

How to concatenate (add) both of them $str

How do i use vars in an array
Hiya peeps!

How do I use a var in an array. You will see $id but it isnt working.


problem with sql querry in php script
Hello guys,

What I want to do is I want to read out a csv file and then but te conent ot the

passing data from one page to another
hey guys
i have the follwoing code to get information from one page and place on another:

New Login Script
Hi all, i attempted to create a whole new login script witch isnt working for some reason i dont kno

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