hehe. You do need to be carefull with the [PHP ] tags though. They don't word wrap long lines, so you should put some newlines in there so you don't make the webpage look all fat.
Also, it's good coding practise to put a newlines in you code so that any code that is out of view is put on the line below indented. This'll help you when you're programming, and you won't have to scroll across to read your code which is ineffecient.
hmm.
anyway... I saw some parse errors.
$check2 =0;
if ((isset($HTTP_POST_VARS["DO"])) && ($HTTP_POST_VARS["DO"] = "true")) {
{
Notice the two { characters? you better remove one of them.
and here:
else
$Result=2;
}
//Flush out the output buffer to the browser
ob_end_flush();
you forgot a { at the end of 'else' too.
K, now if I assume that those errors are not the problem else you would have recieved parse errors when you ran the script... but fix them up anyway it may or maynot solve the problem.
The rest of your code looks ok... so... there must be output somewhere else in your script? whatabout before the <?PHP tag? any newline characters? that counts as output...
hmm.. but apart from that... I'm not too sure...
use the headers_sent() function to check if headers have already been sent before the ob_start(); function... if so there maybe output else where in your script.
hope that helps
-Adam 🙂