babiche Posted May 14, 2010 Share Posted May 14, 2010 I need a script to make ordernumbers starting at 1-2-3-4 etc. that gets send to emailadres, and where and how exactly in script below should it be written? subject and message are visible in email, so it should be there somewhere to be written <?php $sendTo = "[email protected]"; $subject = "Bumper Order"; $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"]; mail($sendTo, $subject, $message, $headers); ?> thx Link to comment https://forums.phpfreaks.com/topic/201734-auto-generate-a-order-number-and-send-to-emailadres-with-ordernr-1-ordernr2/ Share on other sites More sharing options...
Deoctor Posted May 14, 2010 Share Posted May 14, 2010 dont repost the same question again and again. this does not solve the purpose.. regarding the auto generation of the order number use the database where u can store the orders which u have already sent and increment a value with one and then send the new order.. Link to comment https://forums.phpfreaks.com/topic/201734-auto-generate-a-order-number-and-send-to-emailadres-with-ordernr-1-ordernr2/#findComment-1058212 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.