Is there a way to make $_POST global?, e.g.
<?
$serial_no = $_POST["serial"];
?>
....
<div id="div2" align="center" class="divstyle_blue">
<form name="form1" method="post" action="<?php echo $PHP_SELF;?>" style="margin-top:1.75%">
<div align="center"><label>Serial No:</label>
<input name="serial" type="text" maxlength="15">
<input type="submit" name="submit" value="search" class="altButtonFormat">
</div>
</form>
</div>
...
The problem I am having is that I have links on the page which repost,.e.g
"<tr><th><a href=\"$PHP_SELF?ORDER='WHO'&sort=$sort\">WHO</a></th>\n";
echo "<th><a href=\"$PHP_SELF?ORDER='DATE'&sort=$sort\">DATE</a></th>\n";
echo "<th><a href=\"$PHP_SELF?ORDER='TYPE'&sort=$sort\">TYPE</a></th>\n";
echo "<th><a href=\"$PHP_SELF?ORDER='SERIAL_NO'&sort=$sort\">PROBLEM</a></th>\n";
echo "<th><a href=\"$PHP_SELF?ORDER='REPLACING'&sort=$sort\">NEW</a></th>\n";
echo "<th><a href=\"$PHP_SELF?ORDER='ACTION'&sort=$sort\">ACTION</a></th>\n";
echo "<th><a href=\"$PHP_SELF?ORDER='TO_SITE'&sort=$sort\">SITE</a></th>\n";
echo "<th><a href=\"$PHP_SELF?ORDER='NOTES'&sort=$sort\">NOTE</a></th>\n";
As a result of reposting, the variable $serial_no is then empty and cannot be used for my SQL query.
Any ideas?