Codice PHP:
<?php
require( "inc/top_foot.php" );
if ( !isset( 
$_SESSION['cart'] ) )
    
$_SESSION['cart'] = array();
$_SESSION['cart'][$_POST['prod_id']] = 1;
header("location: index.php");
?>
oggi sono alla frutta... mi ritorna l'errore

Parse error: syntax error, unexpected T_STRING in /Applications/MAMP/htdocs/testcarrello/add.php on line 5

ma... perchè?