PHP Classes

Radio buttons do not work correctly

Recommend this page to a friend!

      HTML Form Generator  >  All threads  >  Radio buttons do not work correctly  >  (Un) Subscribe thread alerts  
Subject:Radio buttons do not work correctly
Summary:The value parameter is not available
Messages:1
Author:Julian Toler
Date:2009-12-04 16:24:16
 

  1. Radio buttons do not work correctly   Reply   Report abuse  
Picture of Julian Toler Julian Toler - 2009-12-04 16:24:16
Radio buttons use the name parameter to group them together and the value parameter to set a value on submission.
For example
<form>
<input type="radio" name="sex" value="male" /> Male
<br />
<input type="radio" name="sex" value="female" /> Female
</form>

This class does not permit the setting of a value parameter for radio buttons - so no matter what button is selected it is impossible to determine which button was selected.