Jump to content

sessions and define function


Danny620

Recommended Posts

<?php if (isset($_SESSION['first_name'])) { echo "<div id=\"login_status\">Welcome, Daniel | <a href=\"BASE_URL sm-login/panel\">My Account</a> | <a href=\"BASE_URL sm-login/logout\">Logout</a></div><!-- Show If Logged In -->"; } ?>

 

this is my code but BASE_URL is a define variable containing = http://localhost/ when i run the script php treats it as just BASE_URL

e.g. BASE_URL%20sm-login/pane.php not http://localhost/sm-login/panel.php

 

i know the define is working cos i echo it out earlyer

Link to comment
https://forums.phpfreaks.com/topic/224770-sessions-and-define-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.