Output Buffers? How can I fix the layout? :(
Posted: Wed Aug 21, 2002 3:41 pm
ok I have a webform that users submit info on and when they click submit it takes them to a form that processes the request.
on that form I have a simple check to make sure they filled out the right fields
well if the fields aren't filled in the HTML stops processing after the EXIT command and it leaves half an html page
What I want to do is process all the HTML so the page looks right and then display the php error msg.
From what I read Output buffering is for this:
that didn't seem to work either, anyone have any ideas?
on that form I have a simple check to make sure they filled out the right fields
Code: Select all
//***** CHEST FOR INVALID FIELDS
if (!$name || !$email)
{
echo "Name, Email are Required.<BR><BR>";
echo " Please click your browser's BACK button so your information is not lost.";
exit;
}What I want to do is process all the HTML so the page looks right and then display the php error msg.
From what I read Output buffering is for this:
Code: Select all
ob_start();