The error you are getting is caused by your php code, not your html. It will be easier to find the error in properly formatted code. If statements, loops, and other blocks should not all be on one line:
PHP Code:
if($from == '')
{
print "blah blah";
}
else
{
if(x)
{
//dont forget to tab your code
}
}
Also avoid putting more than one statment on one line, a semicolon almost always means you should start a new line (exception: for loops).
Format you code and then I'll bet the error will stand out.
Last edited by NullPointer; 01-06-2009 at 01:17 PM..
|