How do I get a HTML value from $form_state? I am dynamically showing the radio box values from database on a form.

&lt;input id="edit-info-prog-dates-0" class="form-radio" type="radio" value="0" name="info[prog_dates]"&gt;
&lt;label for="edit-info-prog-dates-0" class="option"&gt;&lt;div class="test-cost-date"&gt;Aug 13, 2012 - Sep 24, 2012&lt;/div&gt;&lt;div class="currency-w1"&gt;&lt;span class="currency-symbol"&gt;$&lt;/span&gt;&lt;span class="currency-cost"&gt;350.00&lt;/span&gt; &lt;span class="currency-code"&gt;CAD&lt;/span&gt;&lt;/div&gt; &lt;/label&gt;


I am using the following code to generate the above HTML.

 $form['info']['prog_dates'] = array(
    '#type' =&gt; 'radios',
    '#title' =&gt; t('Select Dates'),
    '#required' =&gt; TRUE,
    '#options' =&gt; $dates,
    '#prefix' =&gt; '&lt;div id="radios-programdates"&gt;',
    '#suffix' =&gt; '&lt;/div&gt;'
);


I want to save the value for the cost in database. If I write the following code, I am only getting the input value '0'.

$form_state['info']['prog_dates']


How do I fetch the cost value, which is inside the &lt;span&gt; and &lt;label&gt; in HTML?
From the HTML you show, I get that the partial content of $dates is the following.

$dates = array(
  0 =&gt; '&lt;div class="test-cost-date"&gt;Aug 13, 2012 - Sep 24, 2012&lt;/div&gt;&lt;div class="currency-w1"&gt;&lt;span class="currency-symbol"&gt;$&lt;/span&gt;&lt;span class="currency-cost"&gt;350.00&lt;/span&gt; &lt;span class="currency-code"&gt;CAD&lt;/span&gt;&lt;/div&gt;'
);


What you can do to get the 350.0 value is changing $dates to the following.

$dates = array(
  '350.0' =&gt; '&lt;div class="test-cost-date"&gt;Aug 13, 2012 - Sep 24, 2012&lt;/div&gt;&lt;div class="currency-w1"&gt;&lt;span class="currency-symbol"&gt;$&lt;/span&gt;&lt;span class="currency-cost"&gt;350.00&lt;/span&gt; &lt;span class="currency-code"&gt;CAD&lt;/span&gt;&lt;/div&gt;',
  // ...
);


In that way, $form_state['values']['info']['prog_dates'] would contain '350.0', if the users select the radio button I shown.  

From the HTML you shown, I get that in the form you set #tree to TRUE. Differently, the HTML name assigned to the radio form field would not be info[prog_dates] as in your case, but prog_dates. If I am wrong about that, it means you need to check the value of $form_state['values']['prog_dates'], instead of $form_state['values']['info']['prog_dates'].