Re: [PHP] Using PHP/HTML effectivly

2006-06-15 Thread Jochem Maas
Robert Cummings wrote: > On Thu, 2006-06-15 at 03:16, Larry Garfield wrote: >> Another recommendation: Do not, under any circumstances, try to write your >> own >> template engine. All you'll be doing is writing a syntax parser in PHP for >> another syntax that will give you fewer options, less

Re: [PHP] Using PHP/HTML effectivly

2006-06-15 Thread Robert Cummings
On Thu, 2006-06-15 at 03:16, Larry Garfield wrote: > > Another recommendation: Do not, under any circumstances, try to write your > own > template engine. All you'll be doing is writing a syntax parser in PHP for > another syntax that will give you fewer options, less flexibility, and worse >

Re: [PHP] Using PHP/HTML effectivly

2006-06-15 Thread tedd
At 1:14 AM -0700 6/15/06, BBC wrote: >Thank Mr.tedd(I guess you are a man) >I think you should check one of my site http://aztec-indianart.com >while you're surfing this site actually you are visiting one page only with >different variable (see url). >I used many data in html, php, inc, txt, cs

Re: [PHP] Using PHP/HTML effectivly

2006-06-15 Thread Jochem Maas
Richard Lynch wrote: > On Wed, June 14, 2006 3:28 pm, BBC wrote: >> I used many functions as template to change the html syntax. >> this is one of the function as a sample: >> > function >> tabletag($border="0",$width="100%",$height="100%",$cellpadding = >> "0",$cellspacing="0",$style="") >> { >>

Re: [PHP] Using PHP/HTML effectivly

2006-06-15 Thread BBC
EMAIL PROTECTED]>; "Alex Major" <[EMAIL PROTECTED]>; Sent: Wednesday, June 14, 2006 5:39 PM Subject: Re: [PHP] Using PHP/HTML effectivly At 1:28 PM -0700 6/14/06, BBC wrote: I used many functions as template to change the html syntax. this is one of the function as a sample: &quo

Re: [PHP] Using PHP/HTML effectivly

2006-06-15 Thread Richard Lynch
On Wed, June 14, 2006 3:28 pm, BBC wrote: > I used many functions as template to change the html syntax. > this is one of the function as a sample: > function > tabletag($border="0",$width="100%",$height="100%",$cellpadding = > "0",$cellspacing="0",$style="") > { > print (" border=\"$border\"

Re: [PHP] Using PHP/HTML effectivly

2006-06-15 Thread Larry Garfield
On Thursday 15 June 2006 01:50, Richard Lynch wrote: > I can guarantee that somebody on this list is going to be agahst at > this recommendation of such a crude solution -- But it has served me > well for a decade for SIMPLE WEB APPLICATIONS and is much less effort > and more maintainable simply b

Re: [PHP] Using PHP/HTML effectivly

2006-06-14 Thread Richard Lynch
On Wed, June 14, 2006 12:37 pm, Alex Major wrote: > I've been (very slowly) working my way through some basic php, and > putting it into my html site. However recently (after trying things > out such > as cookies or redirects where they have to be set before any page > output) > I've found that

Re: [PHP] Using PHP/HTML effectivly

2006-06-14 Thread tedd
At 1:28 PM -0700 6/14/06, BBC wrote: >I used many functions as template to change the html syntax. >this is one of the function as a sample: >function tabletag($border="0",$width="100%",$height="100%",$cellpadding = >"0",$cellspacing="0",$style="") >{ > print (" cellspacing=\"$cellspacing\" cellpa

Re: [PHP] Using PHP/HTML effectivly

2006-06-14 Thread Alex Major
Thankyou everyone who responded to my original message. All of your ideas have showed me the various ways of doing it, however I believe that the idea from Jons message is best suited to my needs. I realise the logic behind it, its put together some knowledge I have already so I think I'll use it f

Re: [PHP] Using PHP/HTML effectivly

2006-06-14 Thread BBC
I used many functions as template to change the html syntax. this is one of the function as a sample: function tabletag($border="0",$width="100%",$height="100%",$cellpadding = "0",$cellspacing="0",$style="") { print ("cellspacing=\"$cellspacing\" cellpadding=\"$cellpadding\" style=\"$style\">"

Re: [PHP] Using PHP/HTML effectivly

2006-06-14 Thread Jon Anderson
This is my opinion on the matter... From experience, I would say that mixing PHP and HTML together in a complicated page can often get very ugly. I prefer to separate out presentation and code into separate layers as much as possible. I have most often used template systems such as Smarty (sm

Re: [PHP] Using PHP/HTML effectivly

2006-06-14 Thread tg-php
I'm guessing that phpBB is doing things the "right way".. that is, separating presentation and logic. In cases like that, you have your PHP code and your HTML in separate files with as little 'logic' in the HTML as possible. I'm kind of oversimplifying the explaination and I'm sure there are "m