Actually I take that back. 😕
I plugged your solution in real quick, i.e. changing to:
//script 1
$x = 'hope this works!';
echo '<form action="testpost2.php" method="post">';
echo '<input type=hidden name= test_variable value="$x">';
echo '<input type=submit value="Submit">';
echo '</form>';
But now the second script just outputs
$x
Alternatively, I enclosed the string in double quotes, $x = "hope this works!"; while keeping the original '.$x.' but that choice still results in an output which consists only of 'hope'
Could you espouse more on my error pls? Thanks for your time.
-slight