zeraver Posted November 25, 2011 Report Share Posted November 25, 2011 sveiki ! Siet sadabuuju epasta suutisanas formu no pasa saita, bet probleema tada kad suuta pilniiigi jebko ko ieraksts..ko vajadzeetu palabot, lai sutiitu tikai tad, kad viss daudzmaz pareizi aizpildiits ? <pre class="alt2" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: 600px; height: 498px; text-align: left; overflow: auto"><?php$field_name = $_POST['cf_name'];$field_email = $_POST['cf_email'];$field_message = $_POST['cf_message'];$field_phone = $_POST['cf_phone'];$mail_to = 'mrp2049@htomail.com';$subject = 'Message from a site visitor '.$field_name;$body_message = 'From: '.$field_name."\n";$body_message .= 'E-mail: '.$field_email."\n";$body_message . 'Phone: '.$field_phone."\n";$body_message .= 'Message: '.$field_message;$headers = 'From: '.$cf_email."\r\n";$headers .= 'Reply-To: '.$cf_email."\r\n";$mail_status = mail($mail_to, $subject, $phone, $body_message, $headers);if ($mail_status) { ?> <script language="javascript" type="text/javascript"> alert('Thank you for the message. We will contact you shortly.'); window.location = 'contacteng.html'; </script><?php}else { ?> <script language="javascript" type="text/javascript"> alert('Message failed. Please, send an email to fontani@claimcom.it'); window.location = 'contacteng.html'; </script><?php}?></pre> Quote Link to comment Share on other sites More sharing options...
Kavacky Posted November 25, 2011 Report Share Posted November 25, 2011 THIS. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.