cosa ha questo codice di errato????

Codice PHP:
//Controllo che l' utente sia loggato 
if(IsSet($_SESSION['logged'])) 

     
//L' utente e' loggato 
     
echo "Sei connesso";
     echo 
"
<a href=\"verifica.php?logout=1\">Logout</a>"
;
     echo 
"<form action='articoli.php' method='post'>
           <table width='100%' border='0'>
           <tr>
           <td width='9%'>[b]Autore[/b]</td>
           <td width='91%'><input name='creatore' type='text'></td>
           </tr>
           <tr>
           <td width='9%'>[b]Titolo[/b]</td>
           <td width='91%'><input name='prima' type='text'></td>
           </tr>
           <tr>
           <td valign='top'>[b]Articolo[/b]</td>
           <td><textarea name='messaggio' cols='45' rows='25'></textarea></td>
           </tr>
           <tr align="
center">
           <td colspan='2'><input type='submit' value=' Join! '></td>
           </tr>
           </table>
           </form>"
;

mysql_query("INSERT INTO 'articolorako' (tipo)  VALUES('$tapo')" OR DIE(mysql_error());
$idx mysql_insert_id();

mysql_query("INSERT INTO 'articoloprog' (id,idx,data,autore,testo,titolo)  
VALUES(id,'
$idx',NOW() ,'$creatore','$messaggio','$prima')" OR DIE(mysql_error()); 
      
      
}else{ 
     
//L' utente non e' loggato 
echo "<form action=\"./articoli.php\" method=\"post\"> 
Nick<input name=\"user\" type=\"text\" >Pass<input name=\"eass\" type=\"password\" > 
<input type=\"submit\" value=\" invia \"> 
</form>"

     echo 
""

grazie
ciao