Quantcast
Viewing latest article 15
Browse Latest Browse All 31

php function returning 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 latest article 15
Browse Latest Browse All 31

Trending Articles