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
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Php Include bug in firefox [message #169596] Sat, 18 September 2010 19:57 Go to next message
GarryJones is currently offline  GarryJones
Messages: 21
Registered: September 2010
Karma: 0
Junior Member
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.
Re: Php Include bug in firefox [message #169599 is a reply to message #169596] Sat, 18 September 2010 20:08 Go to previous messageGo to next message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma: 0
Senior Member
On 18-09-10 21:57, GarryJones 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 was just doing this

<td>
<form.....>
<input type="image" src="image.gif" value = "submit">
</td>
</form>

And this works i IE8 and also in FireFox

The reason for putting the "</form>" outside the "<td>"
is heaving to do with lay-out...

--
Luuk
Re: Php Include bug in firefox [message #169600 is a reply to message #169596] Sat, 18 September 2010 20:16 Go to previous messageGo to next message
spambait is currently offline  spambait
Messages: 35
Registered: September 2010
Karma: 0
Member
In article <74cf1bf5-48b1-4289-b097-f63887532b69(at)t11g2000vbc(dot)googlegroups(dot)com>, GarryJones <morack(at)algonet(dot)se> wrote:
> On Sep 18, 6:21=A0pm, 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 cli=
> ent,
>> and is not affected by the browser running on the client.
>>
>> You may have a problem with your PHP *script* generating invalid HTML (tr=
> y
>> 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>

No big surprise -- it's invalid.
>
> This works in both
>
> <td>
> <FORM whatever etc>
> <input type="Submit" value = "Boka NU">
> </FORM>
> </td>

No big surprise there either -- it's valid.
>
> Ie Firefox has a bug that requires the form to be inside a td if its
> already in a tr.

Wrong again. The basic problem is that Microsoft pays very little attention to
standards, and IE renders all kinds of invalid HTML. You have no guarantee
that any browser will properly render invalid HTML. There's no bug in Firefox.
The bug is in the HTML you were generating.
Re: Php Include bug in firefox [message #169601 is a reply to message #169599] Sat, 18 September 2010 20:18 Go to previous messageGo to next message
spambait is currently offline  spambait
Messages: 35
Registered: September 2010
Karma: 0
Member
In article <dqifm7-bkl(dot)ln1(at)qqqqq(dot)xs4all(dot)nl>, Luuk <Luuk(at)invalid(dot)lan> wrote:
> On 18-09-10 21:57, GarryJones 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 was just doing this
>
> <td>
> <form.....>
> <input type="image" src="image.gif" value = "submit">
> </td>
> </form>
>
> And this works i IE8 and also in FireFox
>
> The reason for putting the "</form>" outside the "<td>"
> is heaving to do with lay-out...
>
That's not a good idea... Tags should always be closed from the inside out,
e.g.

<td><form> ... </form></td>

but this is off-topic for a PHP group. Followups directed to alt.html, where
this discussion belongs.
Re: Php Include bug in firefox [message #169603 is a reply to message #169596] Sat, 18 September 2010 20:20 Go to previous messageGo to next message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma: 0
Senior Member
On 18/09/10 20:57, GarryJones 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.

Indeed, html requires the following in respect of forms and tables:

Either the whole table must be enclosed in a single form, or a form must
be enclosed within a single td.

So msie is interpreting broken html the way you want it interpreted, and
ff is not interpreting broken html the way you want it interpreted.

Maybe if the html wasn't broken, ff would handle it correctly, like you
just said it does.

Did you also try it in any of: chrome / safari / opera / safari /
konqueror / seamonkey / epiphany .....

Rgds

Denis McMahon
Re: Php Include bug in firefox [message #169609 is a reply to message #169596] Sat, 18 September 2010 21:35 Go to previous messageGo to next message
Michael Fesser is currently offline  Michael Fesser
Messages: 215
Registered: September 2010
Karma: 0
Senior Member
.oO(GarryJones)

> […]
> 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.

It's not FF's fault, but a bug in your code.

Always validate your markup, especially if you don't get the expected
results. In many cases the problem is just invalid HTML, as seen here.

Micha
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 next message
Gordon[1] is currently offline  Gordon[1]
Messages: 6
Registered: September 2010
Karma: 0
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/
Re: Php Include bug in firefox [message #169632 is a reply to message #169596] Mon, 20 September 2010 11:15 Go to previous messageGo to next message
Captain Paralytic is currently offline  Captain Paralytic
Messages: 204
Registered: September 2010
Karma: 0
Senior Member
On 18 Sep, 20:57, 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.

As others have pointed out, this isn't FireFox's bug, it's yours!!!

Try learning how to write valid HTML before you start blaming others
for your own failings.
Re: Php Include bug in firefox [message #169648 is a reply to message #169632] Tue, 21 September 2010 14:34 Go to previous message
Erwin Moller is currently offline  Erwin Moller
Messages: 228
Registered: September 2010
Karma: 0
Senior Member
On 9/20/2010 1:15 PM, Captain Paralytic wrote:
> On 18 Sep, 20:57, 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.
>
> As others have pointed out, this isn't FireFox's bug, it's yours!!!
>
> Try learning how to write valid HTML before you start blaming others
> for your own failings.

Apparently Garry thinks that a piece of software is bugged when it
doesn't do as he intends.

Regards,
Erwin Moller


--
"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
-- C.A.R. Hoare
  Switch to threaded view of this topic Create a new topic Submit Reply
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 Nov 23 11:01:35 GMT 2024

Total time taken to generate the page: 0.02190 seconds