On Monday 13 December 2004 18:29, Stuart Felenstein wrote: > > I think you are missing the point Jason was trying > > to make, which is the > > difference between '$Ind' and "$Ind". If you look > > again, you will see that > > those are handled differently. > > If you read the post Jason suggested I print out using > both single and double quotes. Yes, I really do suggest that you re-read what was said in this thread. > Regardless that has very little to do with my > question. I believe that in the code you posted previously you was using '$Ind' in strcmp(), in which case it is extremely relevant, that is why I brought it up. > Here is just another variation of my multiple select > list. > <option value="<?php echo > $rsinds->Fields('CareerIDs')?>"<?php if > ($rsinds->Fields('CareerIDs')== 5) {echo "SELECTED";} > ?>><?php echo > $rsinds->Fields('CareerCategories')?></option> > > Here I was just testing with a specific value. > the line == 5 will set the value "SELECTED" correctly. > If I put in 5, 6, or '5,','6', etc, I get an error. > However, I don't believe that line works for multiple > values. What works is still a mystery to me. For heaven's sake, do you even know what the HTML *should* look like? Did you construct an example to look at? If you're unable to construct your own example just look at someone else's, go find a site that has multi-select listboxes with pre-selected values and examine the HTML source. Once you know what the HTML should look like it would be straightforward to recreate it using PHP. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* If you can count your money, you don't have a billion dollars. -- J. Paul Getty */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php