$ _POST [] não está funcionando no php
Eu comecei a aprender PHP. Gerenciado para configurar as coisas.
Eu estou usando o PHP versão 5.3.13.
Eu estou tentando postar algumas informações para um formulário html e recebê-lo em um arquivo php.
Para o propósito eu estou usando a variável $ _Post e a saída no arquivo php está em branco.
Abaixo está o código html.
<body>
<form action="report.php" method="POST" >
<label for="firstname">First name:</label>
<input type="text" id="firstname" name="firstname" /><br />
<input type="submit" value="Report Abduction" name="submit" />
</form>
</body>
E abaixo está o código report.php
<html>
<head>
<title></title>
</head>
<body>
<?php
$name = $_POST['firstname'] ;
print($name);
?>
</body>
</html>
Alguém pode me avisar do que estou perdendo?
obrigado