Jump to content

Auto generate a order number and send to emailadres with ordernr. 1, ordernr.2


babiche

Recommended Posts

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

 

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..

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.