RE: [PHP] tag content

From: Date: Thu, 09 Nov 2000 18:58:13 +0000
Subject: RE: [PHP] tag content
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-24539@lists.php.net to get a copy of this message
Could you explain a little further? Im not sure this works. what he is looking for is to be able to call another 'action' if you will. then capture that output into a variable and output it at the end of a script. Is there an easy way to do this? or do you need to EXPLICITELY place the output into variables, which would stink. does PHP have a built in way of handling this? This helpful for dynamic headers/footers. Thanks, Craig -----Original Message----- From: Joe Stump [mailto:joe@earth.care2.com] Sent: Thursday, November 09, 2000 1:42 PM To: Steve Nelson Cc: php-general@lists.php.net Subject: Re: [PHP] tag content This is how I do it: $FONTS['body'] = '<FONT COLOR="red">'; Or just a bunch of HTML in a varible: $foo = 'a bunch of html - still have to escape \'s'; Or just in a function: function bodycontent(){ ?> <a href="http://www.yahoo.com">Yahoo!</a> <? } --Joe On Thu, Nov 09, 2000 at 01:38:09PM -0500, Steve Nelson wrote: > I'm new to this list, i come from a ColdFusion background. While I love > CF, I am trying to broaden my horizons and am digging into PHP. > > Anyway... There is one feature I use in ColdFusion's custom tags that I > can't figure out how it translates to PHP. > > <cf_bodycontent> > <font color="red">some html here</font> > </cf_bodycontent> > > That's a custom tag I created that grabs the text between tags and puts > it into a variable that I can use later. It's useful because I don't > have to escape the quotes or change anything in the HTML for that > matter. > > Is there a way to do this in PHP? > > Steve Nelson > http://www.SecretAgents.com > Tools for Fusebox Developers > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net ============================================================================ ==== = Joe Stump joestump98@yahoo.com http://www.miester.org = ============================================================================ ==== "Real programmers don't comment their code. It was hard to write, it should be hard to understand." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#24539) next »