letmeoutofhere
Programmer
Hello, I am trying to use the POST process to pass variables from one form to another. Not fancy, however it is not working. Any ideas?
*****************
<html>
<head>
<title>Polling</title>
</head>
<body>
<h1>Poll </h1>
<p> Vole...</p>
<?$Age = 1?>;
<form method=post action="showpoll.php">
<input type="hidden" name="test" value="<?$Age?>">
<input type=submit value="Show Results"></input>
</form>
</body>
*********************
showpoll.php contains:
<?
error_reporting(E_ALL);
$test = $HTTP_POST_VARS["test"];
echo "test = ". $test;
?>
</html>
************************
The output has $test being empty.
Any ideas?
Thanks and sorry for the elementary question.
Jim
*****************
<html>
<head>
<title>Polling</title>
</head>
<body>
<h1>Poll </h1>
<p> Vole...</p>
<?$Age = 1?>;
<form method=post action="showpoll.php">
<input type="hidden" name="test" value="<?$Age?>">
<input type=submit value="Show Results"></input>
</form>
</body>
*********************
showpoll.php contains:
<?
error_reporting(E_ALL);
$test = $HTTP_POST_VARS["test"];
echo "test = ". $test;
?>
</html>
************************
The output has $test being empty.
Any ideas?
Thanks and sorry for the elementary question.
Jim