html - php combo list values from function -
i wanted category_list
function value inside combo box it's not working. gurus out there me? thanks! 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 not working
echo "<td><select id=\"cat\" name=\"cat\"></td>\n"; echo "<option value='".category_list($cat)."</option>\n"; echo "</select>\n";
if first example working, should working:
echo '<td><select id="cat" name="cat">'; echo category_list($cat); echo '</select></td>';
Comments
Post a Comment