Re: [PHP-DB] Re: Dynamically populating a dropdown box

2001-12-14 Thread Paul DuBois
At 10:46 -0800 12/14/01, Richard S. Crawford wrote: >At the risk of sounding like a browser-snob... > >The quotes probably don't matter in IE, but that's primarily IE >allows (and, in my opinion, encourages) bad coding practices. > >Your "echo" command really ought to look like this: > >echo "" .

Re: [PHP-DB] Re: Dynamically populating a dropdown box

2001-12-14 Thread Richard S. Crawford
At the risk of sounding like a browser-snob... The quotes probably don't matter in IE, but that's primarily IE allows (and, in my opinion, encourages) bad coding practices. Your "echo" command really ought to look like this: echo "" . $row["name"] . "\n"; Many coders even forget to put in the

Re: [PHP-DB] Re: Dynamically populating a dropdown box

2001-12-14 Thread Ian Ferger
gt;%s", $myrow["colorname"], $myrow["colorname"]); > I also prefer to use printf(" so it has the value in > quotes - just a fussy html thing i do though. > > -Original Message- > From: Matthew Crouch [mailto:[EMAIL PROTECTED]] > Sent: 13 Decem

RE: [PHP-DB] Re: Dynamically populating a dropdown box

2001-12-14 Thread Andrew Chase
> I also prefer to use printf(" so it has the value in > quotes - just a fussy html thing i do though. If you like your code to be legible in a browser's 'View Source' function (which can sometimes be helpful for debugging), you can also add a newline "\n" character to the end of each option line

RE: [PHP-DB] Re: Dynamically populating a dropdown box

2001-12-14 Thread matt stewart
; I also prefer to use printf(" so it has the value in quotes - just a fussy html thing i do though. -Original Message- From: Matthew Crouch [mailto:[EMAIL PROTECTED]] Sent: 13 December 2001 22:58 To: [EMAIL PROTECTED] Subject: [PHP-DB] Re: Dynamically populating a dropdown box I

Re: [PHP-DB] Re: Dynamically populating a dropdown box

2001-12-13 Thread ST Ooi
or alternatively, you can download a drop down box populating class from http://phpclasses.upperdesign.com/ - Original Message - From: "Matthew Crouch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 14, 2001 6:57 AM Subject: [PHP-DB] Re: Dy

[PHP-DB] Re: Dynamically populating a dropdown box

2001-12-13 Thread Matthew Crouch
I'm no expert, and my code is probably buggy, but I think this is the gist of it: %s", $myrow["colorid"], $myrow["colorname"]); } ?> Chris Payne wrote: > Hi there everyone, > > I have a shopping cart which is starting to work nicely, but I have to select >size/color from the entries, how do