sayedsohail Posted February 3, 2007 Share Posted February 3, 2007 Hi, Here is my echo '<a href="$config_basedir;" /logout.php>LOG OUT</a>'; its giving an error. Please help Link to comment https://forums.phpfreaks.com/topic/36951-solved-echo-log-out-error/ Share on other sites More sharing options...
marcus Posted February 3, 2007 Share Posted February 3, 2007 try echo '<a href=".$config_basedir."/logout.php>logout</a>\n'; Link to comment https://forums.phpfreaks.com/topic/36951-solved-echo-log-out-error/#findComment-176338 Share on other sites More sharing options...
sayedsohail Posted February 3, 2007 Author Share Posted February 3, 2007 Thanks that doesn't work however, i changed to single quotes and its workingfine echo '<a href='.$config_basedir.'\logout.php>logout</a>'; Link to comment https://forums.phpfreaks.com/topic/36951-solved-echo-log-out-error/#findComment-176340 Share on other sites More sharing options...
mattd8752 Posted February 3, 2007 Share Posted February 3, 2007 It would be: "<a href=\"".$config_basedir."/logout.php\">logout</a>'; You'd probably want a / not a \, but it would work either way. He was escaping the 's with "s. What you did is correct, but it isn't coded properly (its ouput would be missing "s on both sides. If you are trying to be XML compliant you might want to fix that one. Link to comment https://forums.phpfreaks.com/topic/36951-solved-echo-log-out-error/#findComment-176347 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.