[thelist] quoting attributes was not filling total width

Joe Crawford jcrawford at avencom.com
Tue Apr 17 13:06:54 CDT 2001


Tamara Abbey wrote:
> At 06:57 PM 4/17/2001 +0100, you wrote:
> >So, is it more typing to escape all my attributes, or is there an easier
> >way?
> 
> Depends, as a fellow php newbie, I really worked at learning how to jump
> in and out of php. If I have a lot of html, then I jump out of php and
>I can use straight html.
> 
> If it's just one or two things, then I'll escape the quotes.

Great points. One of the neatest tricks is beginnind a code block,
jumping out of PHP, then jumping back in:

<?php if($variable==1){ ?>

  <p>blah de blah, this is the html code you see if $variable is one</p>

	<p>blah</p>

	<p>blah</p>

<? } else { ?>


  <p>And this is completely alternative code</p>


<? }; ?>


I like that a *lot*

	- Joe
--
Joe Crawford ||||||||||||||       mailto:jcrawford at avencom.com
||||||||||||||||||||||||             http://www.avencom.com
|||||||||||||||||||||||||||      Avencom: Set Your Sites Higher




More information about the thelist mailing list