65
Comments
  • 7
    1. Draw a square
    2. ???
    3. PROFIT
  • 2
    <input type="checkbox" name="choices" value="yes" /> Yes <br />
    <input type="checkbox" name="choices" value="no" /> No <br />
  • 0
  • 3
    @tytho forgot the square brackets there friend 😊. Check boxes allow for multiple selection, therefor inappropriate for yes-no prompts (see `type="radio"`)
  • 0
    and here I thought he was talking about a check box in Android app dev 😂
  • 0
    Language Im creating: <checkbox value="newLanguage" /> 😂
  • 0
    @tyho indeed. you only need one checkbox. Just don't forget to either set a default parameter or check to see if the check box variable exists. Technically you will only have a true once the check box is checked but if the check box is unchecked the variable will not exist unless you default it to false first.
  • 0
    @fyroc @dev-nope all good points, and to be fair, I shouldn't have treated this like stack-overflow. I was just attempting to get syntax out, not pull real-world examples out of my butt.
  • 1
    we are all developers after all
Add Comment