thanks for that, below is the code that im using. im pulling items from my database and then linking them to the check box. im kind of new to PHP, do you think your suggestion would work in this instance?
thanks
<?php
$conn = new COM ("ADODB.Connection") or die("Cannot start ADO");
//define connection string, specify database driver
$connStr="PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=c:\Inetpub\wwwroot\mbsebus08\AHunt\Databases\member.mdb";
//Open the connection to the database
$conn->open($connStr);
echo "Connection Open<br>";
//recordset code
$rS = $conn->execute("SELECT * FROM products");
$f1 = $rS->Fields(0);
$f2 = $rS->Fields(1);
$f3 = $rS->Fields(2);
$f4 = $rS->Fields(3);
$i =0;
while (!$rS->EOF )
{
echo "<tr>
<td align='center'>". $f1->value."</td>
<td align='center'>". $f2->value."</td>
<td align='center'>".$f3->value."</td>
<td align='center'><img src='Images/".$f4->value."'/></td>
<td align='center'><input type='checkbox' name='checkbox".$f1->value."'></td>
<tr>";
$rS->MoveNext();
$i++;
}
$rS->Close();
$conn->Close();
?>
</table>
<p>
<center>
<input type="submit" value="Add Items to Cart" />
</center>
</p>
</form>
</body>
</html>