FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Re: Php Include bug in firefox
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Php Include bug in firefox [message #169627 is a reply to message #169596] Mon, 20 September 2010 08:29 Go to previous messageGo to previous message
Gordon[1] is currently offline  Gordon[1]
Messages: 6
Registered: September 2010
Karma:
Junior Member
On Sep 18, 8:57 pm, GarryJones <mor...@algonet.se> wrote:
> On Sep 18, 6:21 pm, spamb...@milmac.com (Doug Miller) wrote:
>
>> In article <5798dd2d-90b5-46f9-8dc8-16ab2bc19...@j5g2000vbg.googlegroups.com>, GarryJones <mor...@algonet.se> wrote:
>> [...]
>
>>> This works on msie. This does not work on firefox!!
>
>> Therefore it is not a PHP problem. PHP runs on the server, not on the client,
>> and is not affected by the browser running on the client.
>
>> You may have a problem with your PHP *script* generating invalid HTML (try
>> validating at validator.w3.org), or with your Javascript -- but this is
>> definitely not a PHP problem.
>
> Yep, I just learnt something new.
>
> The include is a form. This works in msie, not in firefox.
>
> <FORM whatever etc  >
> <td>
> <input type="Submit" value = "Boka NU">
> </td>
> </FORM>
>
> This works in both
>
> <td>
> <FORM whatever etc>
> <input type="Submit" value = "Boka NU">
> </FORM>
> </td>
>
> Ie Firefox has a bug that requires the form to be inside a td if its
> already in a tr. So it was not php after all.

I'd say it was the other way around, MSIE was allowing markup to work
that was completely invalid. The only thing a TR can contain is a TH
or a TD. Putting a FORM inside a TR is invalid HTML, and all bets are
off when it comes to what a browser will do if they encounter such a
thing.

You'll save yourself a world of hurt if you learn how to create valid
HtML documents. You'll also be in much better shape if you test how
your pages validate. The W3C provides tools online for doing HTML
validation.

http://validator.w3.org/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Accessing different resultsets that were created by a mysql stored procedure
Next Topic: Not bale to connect to MySQL with PHP
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Oct 19 15:14:40 GMT 2024

Total time taken to generate the page: 0.05120 seconds