Re: php & html integration

From: Date: Thu, 14 May 2009 18:52:32 +0000
Subject: Re: php & html integration
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-292577@lists.php.net to get a copy of this message
PJ wrote: > I'm a bit fuzzy on the relationship between the <? ?> and the HTML code. > Where should the php code be placed in a page so that execution is > carried out smoothly? So far, my coding has managed to avoid horrendous > snags; but as I delve deeper into the quagmire of coding, I would like > to clear the fog before me. > Perhaps I have been fortunate up to this point... :-) > Well, you place the php code wherever you want it executed. The file is parsed line by line top to bottom, so if you have some html for an image and you want the php to be executed before the image, then you must place it before the image and vice versa. -- Thanks! -Shawn http://www.spidean.com

« previous php.general (#292577) next »