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

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

Simpler method of getting variables from mysql
Hi Guys,

I'm trying to streamline my CMS's code and as I was writing a new page it occured to

pls clear my confusion
Hi friends,

Pls solve my query .

what is the exact use of Scope Resolution Operator( i

Strange cookie problem. setcookie dependant on where user was directed from?
Hello,

I have a website that sets a cookie when a user visits the website. The cookie holds a

Function
How can I make this function that once you click the link in the code it takes you to a new page wit

IS this code correct
The reason i ask is everything underneath it appears to be alink as well, tis blimmin annoying

problem with array - multilingual page
this is my test page :
Code: <?php
if(isset($_GET['lang'])) {
if($_GET['la

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

PHP Code To Change Font Color in Table Cell
I would appreciate help with the following snippet of my php code. I am just trying to change the f

check if string contain only a-z/A-Z
Is where any way to check if string contains only a-z/A-Z, without writing an array with all possibl

XML Grouping
I'm using xml_parse_into_struct to get all my elements, but now I need to group them. For example, h

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