I have a friend who needs a basic form setup where people can order t-shirts from him. I have set up basic contact forms before, but he needs a size/quantity grid set up that people can enter what they require into then it gets submitted to him to fill out the order (he will do the payment stuff with the person directly).
Can anyone suggest a good way (or point me to a tutorial) that would help me put this together?
The attached image might help make my requirement a bit clearer.
If I were tackling this I'd use a table, and at each intersect I'd have a text input for that parameter.
e.g the top row would be
<tr> <td> <input type="text" name="white-small" /> </td> <td> <input type="text" name="white-medium" /> </td>
and then when the form got processed he'd have a name and quantity list
It has a tableish look to it. But I don't know if it's table data. Hmm. It's not containing any usefull data, only inputs. You could go with a table. Alltough I would probably go with a list. And make the "White", "Sage", "Storm" etc labels. Maybe even the size headlines.