Hi There,
I've got a script and am trying to pass some variables to another script using the post method with the variables hidden. In the receiving script I am just trying to echo the variables to check the content has passed successfully for the time being, but instead of echoing the variable content it is just echoing the variable name.
I've fiddled with the syntax but can't get it to work.
Here's the part of the originating script that sets up the post:
echo '<form action="test_verb.php" method="post">';
echo '<input type="hidden" name="f_sng" value="$f_sng">';
echo '<input type="submit" value="Click here to the verb!">';
echo '</form>\n';
And here's my receiving script:
<?php
$f_sng = $_POST['f_sng'];
echo $f_sng;
?>
Perhaps someone can point out the error of my ways?
Thanks,
Tim.