dthomas31uk — 2010-02-24T06:02:14-05:00 — #1
Hi guys. Have a form for a removal site. What I need is the user to select an item in an check box if they have ie sofa and then to enter how many sofas in an input box. I need to do this with numerous items and then have the results emailed to me. Any ideas how to do this please. Or any tutorials around thanks
smftre — 2010-02-24T06:27:48-05:00 — #2
dthomas31uk — 2010-02-24T06:38:00-05:00 — #3
decowski — 2010-02-24T06:40:06-05:00 — #4
Eh? What's so complicated about it?
<label for="sofas">Sofas</label><input type="checkbox" name="sofas" id="sofas" />
<label for="sofas_qty">Quantity</label><input type="text" name="sofas_qty" id="sofas_qty" />
In terms of UX it's crap, though.
smftre — 2010-02-24T06:41:06-05:00 — #5
Well, you draw the form in php but you dont want to keep reloading the page as the user fills out the form!
crmalibu — 2010-02-24T10:36:06-05:00 — #6
You could just test whether or not the input had a value. If it doesn't, assume "unchecked", else "checked"
dthomas31uk — 2010-02-25T04:28:38-05:00 — #7
smftre — 2010-02-25T04:37:55-05:00 — #8