Jump to content

continuing a list in another column.


sanfordss

Recommended Posts

Not sure if this is a PHP thing, but its in a file with .php.

 

I need to know how to break a list of checkbox items up on the page and continue to the right of the current column. Basically just make 2 columns instead of one long one that scrolls way down.  Here's the code I have for the check boxes. How do I tell the script to break it up and make it 2 or 3 columns? Thanks!

 

<form method='GET' onsubmit="return validateCheckbox()" action='<? $_SERVER['php-self']; ?>'>

<input type='checkbox' name='category[]' value='Item1' /> Item1

  <br />

<input type='checkbox' name='category[]' value='Item2' /> Item2

<br />

<input type='checkbox' name='category[]' value='Item3' /> Item3

<br />

<input type='checkbox' name='category[]' value='Item4' /> Item4

<br />

<input type='checkbox' name='category[]' value='Item5' /> Item5

<br />

<input type='checkbox' name='category[]' value='Item6' /> item6

<br />

 

 

Link to comment
https://forums.phpfreaks.com/topic/196400-continuing-a-list-in-another-column/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.