Jump to content

problems in the display of checkboxes layout


saif_in

Recommended Posts

hi there im a newbie and new to this forum and need the help from this community to solve my issue i have a function which displays checkboxes but it is not formatted properly it is come one by one and grouped together

plz help me with the proper logic code to arrange the list of checkboxes in 5/5 format my current code which is not displaying the layout of the checkboxes properly is :

 

function checkBoxList( &$arr, $tag_name, $tag_attribs, $selected=null, $key='value', $text='text', $porlinea=false )

{

  reset( $arr );

  $html = "";

  for ($i=0, $n=count( $arr ); $i < $n; $i++ ) {

 

  $k = $arr[$i]->$key;

  $t = $arr[$i]->$text;

  $id = @$arr[$i]->id;

 

plz reply me with the proper logic code to display these checkboxes in a proper format of 5/5

and also attached is the screen shot of checkboxes which is not displaying properly

 

[attachment deleted by admin]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.