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 ($_SESSI开发者_开发百科ON['uid']!=1) {category_list($cat);} ?>
</select>
</td>
</tr>
this is not working
echo "<td><select id=\"cat\" name=\"cat\"></td>\n";
echo "<option value='".category_list($cat)."</option>\n";
echo "</select>\n";
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>';
精彩评论