Quantcast
Viewing all articles
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 all articles
Browse latest Browse all 31

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>