[FX.php List] Strange problem
Joel Shapiro
jsfmp at earthlink.net
Mon Aug 25 12:19:54 MDT 2008
All the PHP gets processed on the server, *before* it gets sent to
the browser.
I'd say look at the generated code ("View source") in IE6 and see if
you can find any clues there. Do you see the <select>...?
-Joel
On Aug 25, 2008, at 11:16 AM, Bob Patin wrote:
> Right now, instead of populating the menu as it should, I'm seeing
> nothing. If I hard-code a menu item like this
>
> <option value="test">TEST</option>
>
> ... it shows up, which would indicate that it's not a problem with
> the ID value or CSS.
>
> I'm wondering if, for some reason, the math I'm doing isn't working
> on that browser, but that should be the same across ALL browsers,
> shouldn't it?
>
> It seems as though the WHILE loop isn't doing anything because my
> start < end calculation isn't working... I can't figure it out...
>
> bob
> bob at patin.com
>
> On Aug 25, 2008, at 1:12 PM, Joel Shapiro wrote:
>
>> Hey Bob
>>
>> What do you see in IE6 instead of what you expect?
>>
>> In my experience, the place that IE6 is most challenging is with
>> CSS. Try removing the id="select2" to see what the raw <select>
>> comes out like. If that looks OK, then look at the style of
>> select2. If that doesn't do anything, see if there's an element
>> containing the select (like a div) that has a style.
>>
>> HTH,
>> -Joel
>>
>>
>> On Aug 25, 2008, at 9:47 AM, Bob Patin/Longterm Solutions wrote:
>>
>>> I have a page that shows pulldown menus of dates for a
>>> registration app; it works fine in Safari, IE 7, and Firefox, but
>>> not IE 6.
>>>
>>> When I put a static menu option into the code, it shows in IE6
>>> just fine, but for some reason, IE 6 doesn't like my formula:
>>>
>>> <select name="start_date" id="select2">
>>> <?php
>>> $start_date_time = strtotime($Date_StartRoomsAvailable);
>>> $end_date_time = strtotime($Date_EndRoomsAvailable);
>>> while ($start_date_time < $end_date_time){
>>> $start_date_short = date("m/d/Y",$start_date_time);
>>> $start_date_string = date("F d, Y",$start_date_time);
>>> ?>
>>> <option value="<?php echo $start_date_short; ?>" <?php if
>>> ($start_date_short == $Date_Arrival){ ?>selected="selected" <?
>>> php } ?>><?php echo $start_date_string; ?></option>
>>> <?php
>>> $start_date_time = $start_date_time + 86400;
>>> }
>>> ?>
>>> </select>
>>>
>>> What I'm doing is this:
>>>
>>> I take the start date and the end date; so long as the start date
>>> is less than the end date, I show it as a menu option; I add
>>> 86400 to it (it's translated into time so I can do math with it)
>>> each time thru the loop.
>>>
>>> This works perfectly except in IE 6; shouldn't IE6 perform the
>>> same since the PHP gets done on the server and not in the browser?
>>>
>>> Thanks,
>>>
>>> Bob Patin
>>> Longterm Solutions
>>> bob at longtermsolutions.com
>>> 615-333-6858
>>> http://www.longtermsolutions.com
>>> iChat: bobpatin
>>> AIM: longterm1954
>>> FileMaker 9 Certified Developer
>>> Member of FileMaker Business Alliance and FileMaker TechNet
>>> --------------------------
>>> FileMaker hosting and consulting for all versions of FileMaker
>>> PHP • Full email services • Free DNS hosting • Colocation •
>>> Consulting
>>>
>>>
>>> _______________________________________________
>>> FX.php_List mailing list
>>> FX.php_List at mail.iviking.org
>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list