Quantcast
Channel: User luke - Stack Overflow
Viewing full articles (31 articles)
Browse article index
↧

php function returning 0?

$
0
0

ok, so i am creating a php login system and wanted a simple way to get the link to the logout page by calling a function but it keeps returning 0. He's my function:

function logout_link() {include("auth_vars.php"); //This file contains $auth_path_loginreturn $auth_path_login+"?status=loggedout";}

and this is how i am using it:

<a href="<?php echo logout_link();?>">logout</a>

However it keeps producing:

<a href="0">logout</a>

What is going wrong ?

↧

Viewing full articles (31 articles)
Browse article index

Latest Images

Trending Articles



Latest Images