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.

alt text

Cheers.

2 answers

0
points

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> 

etc

and then when the form got processed he'd have a name and quantity list

Answered about 7 years ago by Tony Crockford
0
points

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.

Answered about 7 years ago by Jens Hedqvist
  • ah, the old debate if it weren't an input grid I'd agree with you - it becomes a table of data though? :) how would you get your list to look like a grid? Tony Crockford about 7 years ago