Jump to content


Photo

scope help


  • Please log in to reply
No replies to this topic

#1 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 18 April 2006 - 10:28 AM

hi people,

small prob but annoying me lots.

Cut to the chase....

I instantiate a class...

$html = new page_Construct;

assign a propery...

$html->secure = 1;

now later in the script I include loginform.php from within the class $html.

before any other code in loginform.php i echo $html->secure

and get the following error:

Notice: Undefined variable: html in C:\Program Files\Apache Group\Apache2\htdocs\nas\admin\templates\loginform.php on line 3

Notice: Trying to get property of non-object in C:\Program Files\Apache Group\Apache2\htdocs\nas\admin\templates\loginform.php on line 3
The secure level in login form is:

prior to including loginform.php i can echo $html->secure successfully in the script that calls loginform.php

what am I doing wrong??????
follow me on twitter @PHPsycho




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users