Jump to content

Auto generate a order number and send to emailadres


babiche

Recommended Posts

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

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.