Categories > TinyButStrong general >

TinyButStrong Error (Merge PHP global variables):

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Trash
Date: 2004-12-09
Time: 17:48

TinyButStrong Error (Merge PHP global variables):

Hi,
i've written a class and in a if-Tag i use:

$usernamemissing = $loginclass->checkusername($_POST['uname']);

In the Browser comes this error-msg:
TinyButStrong Error (Merge PHP global variables): Can't merge [var.usernamemissing] because there is no PHP global variable named 'usernamemissing'. This message can be cancelled using parameter 'noerr'.

How can i make $usernamemissing to a global var ?
thx
By: Skrol29
Date: 2004-12-10
Time: 00:23

Re: TinyButStrong Error (Merge PHP global variables):

Inside a class, you variables are not global but local.
You can do:
   global $usernamemissing;
   $usernamemissing = ...
or
   $GLOBALS['usernamemissing'] = ...
By: Trash
Date: 2004-12-10
Time: 15:23

Re: TinyButStrong Error (Merge PHP global variables):

Hi,
i've done it but its stillt the same error...