I have got PHP code to show a JavaScript button to the logged in users and it wont display anything if they are not logged in. But it only gives me a white page? The code itself is working because I've used it before but not with javascript.
<div align="center">
<?php
session_start();
if (!isset($_SESSION['user']))
{
echo "<a href=\"" target=\"_blank\"></a>";
}else{
echo"<div align="right">
<input type="button" onclick="document.title = 'Google';" value="Change Title to Google">";
}
?>