FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » populating a list box problem
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: populating a list box problem [message #171105 is a reply to message #171101] Fri, 24 December 2010 19:56 Go to previous messageGo to previous message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma:
Senior Member
On Fri, 24 Dec 2010 19:31:53 +0000, Denis McMahon wrote:

> On 24/12/10 19:09, richard wrote:
>> rather than having a god awful long mess of "options" in the code, I would
>> like to populate the listbox by using php.
>
> Something like this maybe
>
> echo "<select name=\"pulldown1\">\n";
> $i = count($options);
> while ($i --) echo "<option value=\"$i\">{$options[$i]}</option>\n";
> echo "</select>\n";
>
> Not really sure what you're describing in the rest of your post though.
>
> Rgds
>
> Denis McMahon

thanks but I like Jerry's way better.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New start-up seeking a programmer (vesting only!)
Next Topic: My first PHP Script...
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 15:05:17 GMT 2024

Total time taken to generate the page: 0.04218 seconds