One of a set of tools we're offering as a way of saying thank you for being a part of the community.
<?php // Convert POST data $order_no = ( isset($_POST['Order_No']) ) ? $_POST['Order_No'] : ''; $name = ( isset($_POST['Name']) ) ? $_POST['Name'] : ''; $to = 'email@example.com'; $from = 'Foster and Partners'; $subject = 'Foster and Partners Order from Website'; // Headers $headers = "MIME-Version: 1.0rn"; $headers .= "Content-type: text/html; charset=iso-8859-1rn"; $headers .= 'From: ' . $from . "\r\n"; // Message $message = "<html><head></head><body>\r\n"; $message.= "Customer Details:\n\n" . "Order No: <strong>" . $order_no . "</strong>\n\n" . "Name: <strong>" . $name . "</strong>\n\n"; $message.="</body></html>"; mail($to, $subject, $message, $headers); // Redirect header('Location: contact_confirmation.php'); ?>
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.