A tricky one?
| From: | Raymond Lille�deg�rd | Date: | Tue, 20 Nov 2001 17:44:16 +0000 |
| Subject: | A tricky one? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-75272@lists.php.net to get a copy of this message | ||
Hi!
I'm trying to make this form working with a mail() script.
I made this form. Then the customer could write how many "pizzas" or
"hamburgers" as he want.
But how do I solve this without too much headache? Havent slept for days
because of this problem : )
<input type="text" name="pizza">
<input type="text" name="chips">
<input type="text" name="hamburger">
-------- script ----------------
<?php
/* recipients */
$to = "someone@online.no" ;
/* subject */
$subject = "Order";
/* message */
$message = "I would like to order $?";
/* To send HTML mail, you can set the Content-type header. */
/* additional headers */
$headers = "From: Someone <someone@someone.com>\r\n";
/* and now mail it */
mail($to, $subject, $message, $headers);
Best regards
Raymond