Or pass the variable $username as an argument into your function:
function LoginSystem($username) {
// your function code
}
LoginSystem($username);
ck
--
Cheap Domain Registration | Web Hosting | Email Packages | + more
Fantastic prices -- Even better service.
http://www.hosttohost.net
Chris
You are using a variable outside of the function's scope.
In the function, do this:
global $username;
Visit www.php.net/man to get a better understanding of globals and
scope.
On Wed, 2003-10-15 at 22:10, Adam Symonds wrote:
> Hi,
> I am starting to us functions with my work but I am having troub
Hi,
I am starting to us functions with my work but I am having troubles
With the variables in the functions..
If I have the following function called from my page it will work but the
variable wont
($username)
but if I put this code straight on the page then it works fine..
Any reason for the va