Is there more php code in test.php you can share?
Have you confirmed that that code alone is the problem?
What version of PHP is the server running?
I made a quick test script -
PHP Code:
<?php
$h = $_POST["fname"];
echo $h;
?>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<form action="james.php" method="post">
<input type="text" name="fname" placeholder="Test">
<input type="submit" value="Test!">
</form>
</body>
</html>
And it runs fine, even with the input you listed (although there really should be a check to see if $_POST['fname'] is set).
Bookmarks