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 #171118 is a reply to message #171117] Sat, 25 December 2010 11:42 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On 25/12/10 11:27, Peter wrote:

> Just quickly, I noticed both you and Jerry included \n (newline
> character) in your output. Is there a specific reason for adding that?
> Would have thought it was completely unnecessary.

Makes it a lot easier to read when viewing the source of the generated
webpage to see why it doesn't do what you want.

In this case, the OP is talking about 100 options in each list ....

If you were trying to debug that webpage, would you prefer:

<select name="somename" id="someid">
<option value="somevalue">sometext</option>
<option value="somevalue">sometext</option>
... repeat 98 more times 1 per line
</select>

or:

<select name="somename" id="someid"><option
value="somevalue">sometext</option><option
value="somevalue">sometext</option> .. repeat 98 more times on the same
line </select>

Rgds

Denis McMahon
[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: Sun Dec 01 00:09:00 GMT 2024

Total time taken to generate the page: 0.04290 seconds