Fix my simplecartjs email in php

IN PROGRESS
Bids
4
Avg Bid (USD)
$55
Project Budget (USD)
$30 - $250

Project Description:
Hello everybody,

My name is Jonas Pijnenburg. I have a website kheuning.nl. My problem is, my shopping cart system isn't working properly.

When a customer places an order, i only recieve the first item in the cart. This is a problem when a person wants to order multiple sunglasses. I get a email like this:

product name 1x €10
total: €50

Instead of:

product name 1x €10
product name 3x €10
product name 1x €10
total: €50.

I have to email every time to ask what the complete order was.

I know that the problem is somewhere in my PHP or in my simplecart JS javascript.
Here is my php:

<?php
$to = '';
$subject = 'Bestelling';
$jcitems = $_POST['jcitems'] .

" \n Totaal: " . $_POST['jctotal'] .
" \n Email: " . $_POST['email'] .
" \n\n Naam: " . $_POST['naam'] .
" \n Straatnaam: " . $_POST['straatnaam'] .
" \n Postcode: " . $_POST['postcode'] .
" \n Woonplaats: " . $_POST['woonplaats'] .
" \n Land: " . $_POST['land'] .



" \n\n IP: " . $_SERVER['REMOTE_ADDR'] .
" \n Datum: " . date("Y-m-d") .
" \n Tijd: " . date("H:i:s") ;

$headers = 'From: Bestallning@Mobil' . "\r\n" .
'Reply-To: Bestallning@Mobil' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $jcitems, $headers);
Header('Location: thankyou.html');

?>

And here is the piece of my javascript that should make this form:

me.emailCheckout = function bestellen() {

itemsString = "";
for( var current in me.items ){
var item = me.items[current];
itemsString += item.name + " " + item.quantity + " " + item.price + "\n";
}

naam = document.form.naam.value;
email = document.form.email.value;
straatnaam = document.form.straatnaam.value;
woonplaats = document.form.woonplaats.value;
postcode = document.form.postcode.value;
land = document.form.land.value;





me.total += "" + " euro"

var form = document.createElement("form");
form.style.display = "none";
form.method = "POST";
form.action = "sendjs.php";
form.acceptCharset = "ISO-8859-1";
form.appendChild(me.createHiddenElement("jcitems", itemsString));
form.appendChild(me.createHiddenElement("jctotal", me.total));
form.appendChild(me.createHiddenElement("naam", naam));
form.appendChild(me.createHiddenElement("email", email));
form.appendChild(me.createHiddenElement("straatnaam", straatnaam));
form.appendChild(me.createHiddenElement("woonplaats", woonplaats));
form.appendChild(me.createHiddenElement("postcode", postcode));
form.appendChild(me.createHiddenElement("land", land));


document.body.appendChild(form);
form.submit();
document.form.submit();
document.body.removeChild(form);
}

};

Thank you all in advance. I think this should be a very quick fix but i don't mind to pay some dollars.

Additional Project Description:
05/05/2012 at 18:26 WIT
I also want my shopping cart to check required fields, so i wont get any empty emails!

I think this shouldn't be a big problem for a experienced web developer.

Kind regards,
Jonas Pijnenburg

Skills required:
eCommerce, HTML, PHP, Shopping Carts, Website Design
About the employer:
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


$ 30
in 1 days
$ 50
in 1 days
$ 30
in 1 days
Hire myspcits
$ 110
in 5 days