# URGENT: form processing

**URL:** <https://forum.kirupa.com/t/urgent-form-processing/22102>\
**Category:** programming\
**Created:** [May 30, 2003, 9:04am UTC](https://forum.kirupa.com/t/urgent-form-processing/22102 "2003-05-30T09:04:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deathcrussader](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@deathcrussader](https://forum.kirupa.com/u/deathcrussader)\
**Post date:** [May 30, 2003, 9:04am UTC](https://forum.kirupa.com/t/urgent-form-processing/22102/1 "2003-05-30T09:04:44Z")

</div>

Here’s the deal:  
A need to be able to put variables on a php page into a html mail form to send it to a mail-rec.  
For example:

I have a result

1 | productname | identification | price | stock  
2 | productname | identification | price | stock  
3 | productname | identification | price | stock  
4 | productname | identification | price | stock

these are variables put on a php page in a table  
now I need to put this table in an email and send it to the admin

[http://cmdstud.khlim.be/~aschmitt/case4/derde%20versie/shop/index.html](http://cmdstud.khlim.be/~aschmitt/case4/derde%20versie/shop/index.html)  
just enter a qty and press enter, the go to “winkelwagentje” and you see what i mean

Please help me, it’s rather urgent  
grtz death

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 30, 2003, 2:23pm UTC](https://forum.kirupa.com/t/urgent-form-processing/22102/2 "2003-05-30T14:23:16Z")

</div>

\<?  
//— Use $\_POST[]; to catch the variables —  
$productname = $\_POST[‘productname’];  
$identification = $\_POST[‘identification’];  
$price = $\_POST[‘price’];  
$stock = $\_POST['stock];

//— Email variables ----  
$toEmail = "putAdminEmailHere@Admin.com";  
$subject = “Admin Email”;  
$message = $productname." | “.$identification.” | “.$price.” | ".$stock;  
// ---- mail() function  
mail($toEmail, $subject, $message);  
?\>

that would send one row of values to the admin e-mail address. You’ll have to tweak it.
