[FX.php List] Strange problem
Bob Patin
bob at patin.com
Mon Aug 25 14:02:57 MDT 2008
Yes, I think you missed it; here's my original posted code:
> <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>
In IE 7 here's the code that I get:
<select name="start_date" id="select2">
<option value="03/06/2008" >March
06, 2008</option>
<option value="03/07/2008"
>March 07, 2008</option>
<option value="03/08/2008"
selected="selected" >March 08, 2008</option>
<option value="03/09/2008"
>March 09, 2008</option>
<option value="03/10/2008"
>March 10, 2008</option>
<option value="03/11/2008"
>March 11, 2008</option>
<option value="03/12/2008"
>March 12, 2008</option>
<option value="03/13/2008"
>March 13, 2008</option>
</select>
Originally, instead of
selected="selected"
I was putting just
selected
I forget which is the newer way to do it, but both are acceptable.
At any rate, it didn't make any difference.
Note that, in this code from IE7, that everything is properly
On Aug 25, 2008, at 2:34 PM, Dale Bengston wrote:
> Hi Bob,
>
> Can you clip and post up the html as it's rendered by IE7? Or did I
> miss that in an earlier post?
>
> Thanks,
> Dale
>
> On Aug 25, 2008, at 2:14 PM, Bob Patin wrote:
>
>> That's what I thought too at first, but here's what I see:
>>
>> <select name="start_date" id="select2">
>> </select>
>>
>> ... So that means that none of my PHP-generated menu items are
>> being generated.
>>
>> I even substituted in some silly little PHP
>>
>> <option value="<?php echo "test"; ?>><?php echo "TEST"; ?></option>
>>
>> and of course it worked... yes, I know, it was a silly test.
>>
>>
>>
>> On Aug 25, 2008, at 2:07 PM, Michael Layne wrote:
>>
>>> Hi,
>>>
>>> Without being able to see the rendered page, I can't be sure of
>>> much, but my first guess is that there may be something wrong in
>>> the actual HTML your code is rendering, and the more modern
>>> (better) browsers are letting you get away with it and IE6 is not.
>>>
>>> Again, cannot be sure at all, but I've had IE6-specific problems
>>> where it turned out to be the markup itself.
>>>
>>> Good luck.
>>>
>>> Michael
>>>
>>> Michael Layne | 9 degrees development | 9degrees.com |
>>> skype:laynebay
>>>
>>> On Aug 25, 2008, at 12:47 PM, 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
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080825/1b6826ba/attachment.html
More information about the FX.php_List
mailing list