Hi there, and thanks in advance!
I'm developing a simple order form for a catering company which calls from a MySQL database a list of all of the company's foods/items in the left column of a table, and in the right hand column next to each item name is a quantity text field which by default is set to '0'.
What I'm having difficulties finding out (I'm still a relative newbie) is when a customer enters a value greater than '0' into the form for any of the items, I want only those items that have been updated with a value greater than '0' to be sent via email as well as appear on the next page (the order confirmation page). This is all fairly straight-forward, I could simply show all those fields with a value greater than '0'.
The problem I'm having is that I would like a customer (after they've logged into the system) to be able to update their order - so they would once again get the whole list of items the shop has for sale, and the quantities next to the items the customer has ordered, but if the customer decides to decrease or increase the quantity of an already ordered item, how can I send the value of only the updated item onto the next page or in the email?
I've had a brief chat with another developer who told me I'll need to use an array, and I have tried to do a search for anything with the terms "php, updated form fields, value, etc, etc", and haven't been very successful.
Cheers if you can help me out - and let me know if I need to provide an example?