- Nabi
If you want to go the easy route, check
http://www.hotscripts.com for several free PHP/MySQL shopping cart scripts.
But that's cheating, and besides, what better way to know how your cart works than by getting your hands dirty and building it yourself?
I won't go over it all, but in regards to your question, what you can do is set up a MySQL database table with all the items and their prices.
After that, query the database, and then output it in an html form:
After the user submits the form, all you need to do is loop through the "price" formfield, adding each item to a variable which holds the sum.
Hope that helps, and good luck.
- Patriarch