title: Auto checked radio buttons and php form processing - How to avoid blank field?
body: <p>SOLVED: Just need to add autocomplete="off" to the radio buttons.</p>
  
  <p>EDIT: I was incorrect in my original assessment of what's causing the error. It is not dependent on whether or not the user makes a selection. It's when I use Chrome's autofill feature for the rest of the form. If I use the autofill then no value gets passed through :-/</p>
  
  <p>EDIT2: Looks like it's a known bug. Chrome autofill unfills radio buttons <a href="http://productforums.google.com/forum/#!topic/chrome/WNBd8p6q7YQ" rel="nofollow">http://productforums.google.com/forum/#!topic/chrome/WNBd8p6q7YQ</a></p>
  
  <p>I have a form where the recommended postage options are pre-selected using "checked":</p>
  
  <pre><code>&lt;fieldset class="outwardpostage"&gt;
  
  &lt;legend&gt;Outward postage&lt;/legend&gt;
  
  &lt;label for="outwardpostageeconomy"&gt;Economy&lt;br&gt;&lt;span class="greenprice"&gt;£3.95&lt;/span&gt;&lt;/label&gt;
  &lt;input type="radio" name="outwardpostage" value="3.95" id="outwardpostageeconomy" checked&gt;
  
  &lt;label for="outwardpostagestandard"&gt;Standard&lt;br&gt;&lt;span class="greenprice"&gt;£7.95&lt;/span&gt;&lt;/label&gt;
  &lt;input name="outwardpostage" type="radio" id="outwardpostagestandard" value="7.95"&gt;
  
  &lt;label for="outwardpostagepremium"&gt;Premium&lt;br&gt;&lt;span class="greenprice"&gt;£11.95&lt;/span&gt;&lt;/label&gt;
  &lt;input type="radio" name="outwardpostage" value="11.95" id="outwardpostagepremium"&gt;
  
  &lt;label for="outwardpostagepostyourself"&gt;I will post myself using my own preferred delivery service&lt;/label&gt;
  &lt;input type="radio" name="outwardpostage" value="0" id="outwardpostagepostyourself"&gt;
  
  &lt;/fieldset&gt;
  </code></pre>
  
  <p>The problem is the value doesn't get passed through the php form processor unless the user has clicked on the radio button. If they have just left the recommended option then the field is left as blank.</p>
  
  <p>How can I fix this?</p>
  
  <pre><code>$outwardpostage = $_POST['outwardpostage'];
  </code></pre>