cannot modify header -plz help-
View Single Post
04-20-2008, 07:01 PM
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
but the html code MUST be before the php
so i can mix design and php
No it doesn't, that's the beauty of PHP. You can easily process everything you need to at the top of the page, and then use it later on down the page. PHP variables aren't restricted to the scope of the current opening and closing tag.
Either way, you don't have much of a choice. You cannot send a header after HTML has already been sent, and there is no way around that. Output buffering offers you a kind of alternative, but really there shouldn't be a need for it.
View Public Profile
Send a private message to delayedinsanity
Visit delayedinsanity's homepage!
Find More Posts by delayedinsanity