-3

When I execute this code it says to me the error in the title. The code:

if(isset($_POST['name'])) {
        $name=$_POST['name']

        echo 'test';
}

I know it's a little code but I don't find the error. Can you help me pls?

Ganoss_
  • 13
  • 3

1 Answers1

0

missing semmicolon at end of the line.
$name=$_POST['name'];

Bela Erdei
  • 31
  • 1
  • 4