I am using a hidden field to carry information from one page to the next as part of a user input form but it doesn' seem to be working
//set the variable to take to the next page
//$ClientRef has been set early in the code and works (i have tested it)
$query = "SELECT Dept FROM tblDept WHERE ClientRef = '$ClientRef'";
$result22 = mysql_query($query)
or die(mysql_error());
$row22 = mysql_fetch_array($result22);
$SectionRef = $row22["SectionId"];
echo' <form action="process.php" method="POST">
<table align="centre" cellspacing="0" cellpadding="0">
<tr valign="top">
<td align="left"><b>Type </b></td>
<td align="left"><b>Number</b></td>
<td align="left"><b>Location</b></td>
<td align="right"><b>Code</b></td> </tr>';
echo "<font face=\"Arial, Helvetica, sans-serif\">
<td width=\"10\" align=\"left\"> <input type=\"hidden\" name=\"section\" value '$SectionRef'> </td>
<td width=\"10\" align=\"left\"> <input type=\"hidden\" name=\"List\" value\"{$row21[4]}\"> </td>
<td width=\"70\" align=\"left\"> {$row21[0]}</td>
<td width=\"120\" align=\"left\"> {$row21[1]}</td>
<td width=\"200\" align=\"left\"> {$row21[2]}</td>
<td width=\"30\" align=\"right\"> {$row21[3]} </td> ";
I have tested the variable $SectionRef and it echos out on the form page no problem.
but when test the variable on the next page
$SectionRef = $_POST['section'];
echo "test section = '$SectionRef'";
I get nothing
any ideas anyone?