There is such code:

<?php list(filename, name, author, material, scale, date, museum, city, notation) = $_POST; echo author; 

An error

Parse error: syntax error, unexpected ',', expecting '(' in C: \ OpenServer \ domains \ localhost \ csv.php on line 2

Why?

  • 2
    Well, probably because the variable is written in $. - Naumov

1 answer 1

Do not forget the $ sign in front of variables.

 <?php list($filename, $name, $author, $material, $scale, $date, $museum, $city, $notation) = $_POST; echo $author; 
  • Oh, such a ridiculous mistake. Thank! - Timur Musharapov