form_radio()

form_radio([$data = ''[, $value = ''[, $checked = FALSE[, $extra = '']]]])

Parameters:
  • $data (array) – Field attributes data
  • $value (string) – Field value
  • $checked (bool) – Whether to mark the radio button as being checked
  • $extra (mixed) – Extra attributes to be added to the tag either as an array or a literal string
Returns:

An HTML radio input tag

Return type:

string

This function is identical in all respects to the form_checkbox() function above except that it uses the “radio” input type.

doc_CodeIgniter
2016-10-15 16:32:20
Comments
Leave a Comment

Please login to continue.