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
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.
Well, you draw the form in php but you dont want to keep reloading the page as the user fills out the form!
You could just test whether or not the input had a value. If it doesn’t, assume “unchecked”, else “checked”