Re: [PHP] better way to mix html and php code?

2005-11-16 Thread David Tulloh
Curt Zirzow wrote: > On Wed, Nov 16, 2005 at 10:12:53AM -0600, [EMAIL PROTECTED] wrote: > >>Hi to all, >>always wondered what's better way to mix html and php code. Here are >>three "ways" of the same code. Which one you prefer? (And why, of caurse :)) >> Personally, I present solution 2b. I al

Re: [PHP] better way to mix html and php code?

2005-11-16 Thread Robert Cummings
On Wed, 2005-11-16 at 16:17, Miles Thompson wrote: > At 05:04 PM 11/16/2005, Brent Baisley wrote: > >You should separate HTML and PHP code into separate files to make it > >easily maintainable. Ideally, someone who knows HTML without any > >knowledge of PHP would be able to change the layout of the

Re: [PHP] better way to mix html and php code?

2005-11-16 Thread Miles Thompson
At 05:04 PM 11/16/2005, Brent Baisley wrote: You should separate HTML and PHP code into separate files to make it easily maintainable. Ideally, someone who knows HTML without any knowledge of PHP would be able to change the layout of the web page without breaking anything. There are a bunch of ex

Re: [PHP] better way to mix html and php code?

2005-11-16 Thread Brent Baisley
You should separate HTML and PHP code into separate files to make it easily maintainable. Ideally, someone who knows HTML without any knowledge of PHP would be able to change the layout of the web page without breaking anything. There are a bunch of examples of how to do this, usually falling

Re: [PHP] better way to mix html and php code?

2005-11-16 Thread Curt Zirzow
On Wed, Nov 16, 2005 at 10:12:53AM -0600, [EMAIL PROTECTED] wrote: > Hi to all, > always wondered what's better way to mix html and php code. Here are > three "ways" of the same code. Which one you prefer? (And why, of caurse :)) > > Solution 2a: >

Re: [PHP] better way to mix html and php code?

2005-11-16 Thread Richard Davey
Hi afan, Wednesday, November 16, 2005, 4:12:53 PM, you wrote: > always wondered what's better way to mix html and php code. Here are > three "ways" of the same code. Which one you prefer? (And why, of > caurse :)) Honestly, I wouldn't pick any of them :) But if I had to (i.e. forced at gun-poin

[PHP] better way to mix html and php code?

2005-11-16 Thread [EMAIL PROTECTED]
Hi to all, always wondered what's better way to mix html and php code. Here are three "ways" of the same code. Which one you prefer? (And why, of caurse :)) Solution 1: echo 'style="border: 1px solid