ToonMariner Posted April 18, 2006 Share Posted April 18, 2006 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->secureand get the following error:Notice: Undefined variable: html in C:\Program Files\Apache Group\Apache2\htdocs\nas\admin\templates\loginform.php on line 3Notice: Trying to get property of non-object in C:\Program Files\Apache Group\Apache2\htdocs\nas\admin\templates\loginform.php on line 3The secure level in login form is: prior to including loginform.php i can echo $html->secure successfully in the script that calls loginform.phpwhat am I doing wrong?????? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.