Buy Cheap Software - Discount Software
pimpMyJoomla Board
Welcome, Guest
Please Login or Register.
Lost Password?
Re:Code suggestion : only one radio button from many (1 viewing)
_GEN_GOTOBOTTOM Post Reply

TOPIC: Re:Code suggestion : only one radio button from many

#375
globule (User)
Senior Boarder
Posts: 10
graphgraph
Code suggestion : only one radio button from many 2007/05/15 17:51 Karma: 0  
Here how radio buttons can be manage using default values :
Code:

             case 'radio':                 $options '';                 $row->default_value explode(',',$row->default_value);                 $fieldvalues='';                 foreach ($row->default_value as $optionset){                     $fieldvalues .= '<input type="radio" name="'.$row->name.'" value="'.$optionset.'" id="'.$row->name.$optionset.'" '.$row->params.' />'.$optionset;                 }                 $html str_replace('{fieldtitle}',$row->title,$row->fieldstyle);                 $html str_replace('{validationsign}',($row->validation_rule) ? ' *':'',$html);                 $html str_replace('{field}',$fieldvalues,$html);                 $html str_replace('{fielddesc}',$row->description,$html);             break;

  The topic has been locked.
#423
alex (Admin)
Admin
Posts: 301
graph
Re:Code suggestion : only one radio button from many 2007/05/16 00:55 Karma: 8  
Thanks, i'll keep that in mind.
  The topic has been locked.
_GEN_GOTOTOP Post Reply
© Copyright 2007 Best of Joomla, Powered by FireBoardget the latest posts directly to your desktop