I could just be mistaken, however
I believe the correct $_POST syntax is as follows:
<?php
$tname = "one";
$dname = "two";
?>
<html><head><title>Pass it Along Form!</title</head><body>
<form name="fNameForm" method="POST" action="insertrecord.php">
<input type="text" name="fname">
<input type="hidden" name="dname" value="<?php echo $dname; ?>">
<input type="hidden" name="tname" value="<?php echo $tname; ?>">
<input type="submit" name="submit" value="Insert Record">
</form>
</body>
</html>
And in the file: insertrecord.php
<?php
$fname = $_POST['fname'];
$dname = $_POST['dname'];
$tname = $_POST['tname'];
echo "Hello $fname.. Its a nice day outside, $tname, $dname, three.";
?>
This should pass from one file (even HTML) to the PHP file.
You can then do what you like with the variables.
Remember you have to use $_POST for every variable you wish to pass. And in HTML forms, even if you have the variable set, you will have to re-send it with the form.
This is most common done with <input type="hidden">.
If you need clarification, don't hesitate to ask.
big.nerd