bruce wrote:
hi..
need to talk to someone to figure out how/what i need to do to use the php
'headers' function, as opposed to the javascript 'location.href'.
i've tried to implement the buffering functions, but still get the same
error...
is there someone that i can talk to about this, who ha
experience/understanding of what's going on. i've thought about rewriting
what i have to this point, but i've got code interspersed with html...
yeah.. i know... cleaning it up would probably make things easier/better,
but this is a quick/dirty test.. and i don't claim to be a web developer!
thanks
-bruce
[EMAIL PROTECTED]
Bruce, your question lacks specificity, so it is difficult to give you a simple
answer.
Here is how I handle virtually of of my html pages. It solves the buffering problems and makes good, clean, and easy to
debug code. This approach is good since, like buffering, it sends everything in one stream to the client.
I assemble my output stream like so. Obviously, foo can be anything, variables,
strings, etc.
$report= '';
code or what ever....
$report .= foo;
code or what ever....
$report .= foo2;
and so on....
Then at the end when the report is fully assembled, I simply
echo $report;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php