I have a link that would pass a value to another page heres the code
CODE
<?php
ob_start();
include 'includes/connect.php';
require_once('includes/connect.php');
$query="Select * from products where status<>0";
$result=mysql_query($query);
$row1=mysql_num_rows($result);
echo "<table align=\"center\" border=\"2\" cellspacing=\"1\">";
echo "$br";
echo "<tr>";
echo "<td align=\"center\"><strong>Picture</strong></td>";
echo "<td align=\"center\"><strong>Software Name</strong></td>";
echo "<td align=\"center\"><strong>Category</strong></td>";
echo "<td align=\"center\"><strong>Description</strong></td>";
echo "<td align=\"center\"><strong>Price</strong></td>";
echo "<td align=\"center\"><strong>Quantity</strong></td>";
echo "<td align=\"center\"><strong>Buy</strong></td>";
echo "</tr>";
while($array=mysql_fetch_array($result))
{
extract($array);
echo "<tr>";
echo "<td align=\"center\"><img src=".$picture."></td>";
echo "<td align=\"center\"><font color=\"red\">".$sName."</font></td>";
echo "<td align=\"center\">".$category."</td>";
echo "<td align=\"center\">".$description."</td>";
echo "<td align=\"center\">".$price."</td>";
echo "<td align=\"center\">".$quantity."</td>";
echo "<td align=\"center\"><a href= \"Admin.php?$sName\"><input name=\"Buy\" type=\"button\" value=\"Buy\"></a></td>";
echo "</tr>";
}
echo "</table>";
?>
</div></td>
and im going to retrieve it in another page heres how i do it
CODE
<input name="id" type="text" id="id" value ="<?php echo $_GET[sName] ?>">
but the textbox is empty... am i doing it right??