In addtocart.php manca session_start().
Sviluppatore Laravel - Backend Developer Automazione Aziendale
Regole del Forum