Jump to content

[SOLVED] echo '<a href="$config_basedir;" /logout.php>LOG OUT</a>'; error


sayedsohail

Recommended Posts

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.

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.