Yes, as Smitty and Samba Neko pointed out you would need to modify my code because it has holes, etc in it. The above code is an example I was given during one of my classes by my lecturer to show me how a shopping cart was suppose to work.