babiche Posted May 13, 2010 Share Posted May 13, 2010 Hi, I have created an orderform in Flash, the loadvariables go to email2.php (see below), which sends all filled in tekst (in the variables in swf) to my mailadres. Is there a easy simple way/script that a ordernumber gets send with it each time a mail gets send to my emailadres? Ordernumber should be in the $message or $subject . A tekst.txt document then could register the last send ordernumer. In the flashdocument, I have also created an order number generator, but it seems impossible to send it to a php like below, the php does not read that variable from flash. That is why I ask if there is a short script for an ordernumber to put in the php below. And it should be visible in the email that will be send. <?php $sendTo = "[email protected]"; $subject = "Bumper Order"; <<<<<<new ordernumber here $headers = "From: " . $_POST["name"] ." <" . $_POST["email"] .">\r\n"; $headers .= "Reply-To: " . $_POST["email"] . "\r\n"; $headers .= "Return-Path: " . $_POST["email"]; $message = "Product: " . $_POST["product"] . " Quantity: " . $_POST["quantity"]; <<<<<<new ordernumber here mail($sendTo, $subject, $message, $headers); ?> best regards joyce Link to comment https://forums.phpfreaks.com/topic/201683-auto-generate-a-order-number-and-send-to-emailadres/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.