Non-object when adding code into html

Posted by Luke on Stack Overflow See other posts from Stack Overflow or by Luke
Published on 2011-01-03T18:31:53Z Indexed on 2011/01/03 18:53 UTC
Read the original article Hit count: 210

Filed under:

Hello. I am getting the following error:

Fatal error: Call to a member function error() on a non-object in /home/gamepla3/public_html/football/result.php on line 177

The line for this is

<?php echo $form->error("homescore"); ?>

I'm failing to see how this could be the case? The thing worked fine before I added working code into my html document so it looked better.

Now I can't get it working??

EDIT. When the code is not within HTML, it works fine. Once I have it within the HTML, it throws back an error? Has anyone seen anything like this before?

© Stack Overflow or respective owner

Related posts about php