I am looking for a function that will retrieve the names and ids of all categories that will output a checkbox, or give me the data so I can perform a loop.
<input type="checkbox" name="category" value="category_id" /> Category 1
<input type="checkbox" name="category" value="category_id" /> Category 2
<input type="checkbox" name="category" value="category_id" /> Category 3
<input type="checkbox" name="category" value="category_id" /> Category 4
<input type="checkbox" name="category" value="category_id" /> Category 5