2

Possible Duplicate:
php $_POST array empty upon form submission

I am trying to have a form filled out, then the data displayed on another page. The first document is this

<html>
<head>
</head>
<body>
<form action="testerpage.php" method="post">
Name: <input type="text" name="testname">
<input type="submit">
</form>
</body>
</html>

The other page (testerpage.php) is this

<html>
<body>
<?php 
echo $_POST["testname"];
?>
</body>
</html>

Why won't testerpage display the information from the first page(named welcome.php)? It doesn't work with "get" either

Community
  • 1
  • 1
WillumMaguire
  • 537
  • 2
  • 10
  • 21

1 Answers1

2

Given that you have untouched PHP code in your HTML output, it turns out PHP is disabled on your server so PHP code is not executed at all. Consult your hosting provider technical support on enabling PHP on server.

Marat Tanalin
  • 13,927
  • 1
  • 36
  • 52