Posted by Geoff Berrow on 06/07/07 18:11
Message-ID: <1181238806.840842.284510@p47g2000hsd.googlegroups.com> from
jsd219 contained the following:
><select name="category">
><option value="CAT"<?php include 'category.php' ?>></option> </select>
>
>Can anyone tell me how to make this drop down populate from the
>category php file?
>
We need to see category.php.
If this file produces an array (called say $categories) then you could
do something like this:
<select name="category">
foreach ($categories as $category){
echo "<option >$category</option>\n";
}
?>
</select>
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Navigation:
[Reply to this message]
|