title: Using checkbox and Input field for inserting into DB
body: <p>I have a form such as the one below: </p>
  
  <pre><code> &lt;input type="checkbox" name="type" value="wash"&gt;&lt;label&gt;Wash&lt;/label&gt;&lt;br&gt;
   &lt;input type="checkbox" name="type" value="no wash"&gt;&lt;label&gt;No Wash&lt;/label&gt;&lt;br&gt;
          &lt;label&gt;Other (Specify)&lt;/label&gt;&lt;br&gt;
          &lt;input name="type"&gt;&lt;br&gt;
  </code></pre>
  
  <p>If you notice for all three i am using "type" as the input name.  The point being that the user will be given two options, if none of the two options apply to them they should enter a value in other.  Now in the database i have the field type, so if they selected the first two and entered a value in the field or if they only wrote a value in the field i still want it to to be part of the type field.  So how can i make it so that if they select the input field it should also insert in "type".  </p>