I wanted the category_list
function value to be inside my combo box but it's not working. Any gurus out there to help me? thanks! this is working
<tr>
<td><?php echo $xx['evt_category'];?>:</td>
<td>
<select name="cat" id="cat">
<?php if ($_SESSION['uid']!=1) {category_list($cat);} ?>
</select>
</td>
</tr>
this is not working
echo "<td><select id=\"cat\" name=\"cat\"></td>
";
echo "<option value='".category_list($cat)."</option>
";
echo "</select>
";
If your first example is working, then this should be working:
echo '<td><select id="cat" name="cat">';
echo category_list($cat);
echo '</select></td>';