ok, so I am creating a php registration system and would like to get an easy way to get a link to the exit page by calling a function, but it keeps returning 0. It is its function:
function logout_link() {
include("auth_vars.php");
return $auth_path_login+"?status=loggedout";}
and here is how I use it:
<a href="<?php echo logout_link();?>">logout</a>
However, he continues to produce:
<a href="0">logout</a>
What is going wrong?
source
share