ok Mordecai
im getting alittle confused.
here is the code that is before the html tags
<?php
session_start();
if(empty($GET["select"])) {
$proid = 1;
}
else {
$proid=$GET["select"];
}
mysql_connect ("localhost","user","pass") or die(mysql_error() . "<B>Can't connect to the server</B>");
mysql_select_db("store") or die(mysql_error() . "<B>Specified database does NOT exist</B>");
$query = "select description, price, image, product_id from products WHERE product_id = $proid ";
$result = mysql_query($query) or die(mysql_error() . "<B>Bad Query</B>");
$num= mysql_num_rows($result);
do {
$img=$row['image'];
$desc=$row['description'];
$money=$row['price'];
$productid=$row['product_id'];
}
while($row = mysql_fetch_array($result));
?>
here is my code that is in between my html tags...
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FFFFFF" valign="top" align="center">
<form action="m_shirt.php" method="get" name="list" id="list">
<div align="center">
<select name="select">
<option value="1m" selected>Truth</option>
<option value="2m">Integrity</option>
<option value="3m">Freedom</option>
<option value="4m">Role Model</option>
<option value="5m">Grace</option>
<option value="6m">Authority</option>
<option value="7m">Example</option>
<option value="8m">Future</option>
</select>
<input type="image" name="Submit2" value="Select" src="images/select.jpg">
</div>
</form>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#99CCFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<tr>
<td>
<center>
<?php echo"<img src=\"http://www.heismy.com/beta/test/images/male/$img\">";?>
</center>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" bgcolor="#99CCFF" height="11">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top" bgcolor="#FFFFFF">
<center>
<img src="images/male/back.jpg" width="396" height="364">
</center>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#99CCFF" height="19">
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<tr>
<td>
<center>
<font face="Arial, Helvetica, sans-serif">
<?php echo"$desc"?>
</font>
</center>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#99CCFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FFFFFF">
<center>
<font face="Arial, Helvetica, sans-serif">
<?php echo "$money"?>
</font>
</center>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="85" bgcolor="#99CCFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="79" align="center" valign="top" bgcolor="#FFFFFF">
<center>
<font face="Arial, Helvetica, sans-serif"> </font>
<form action="add_cart.php" method="post" name="form2" target="_self">
<p>
<input name="product_id" type="hidden" id="product_id" value=<?php echo "$productid" ?> >
</p>
<p>Sizes </p>
<p>
<input type="checkbox" name="checkbox" value="checkbox">
s
<input type="checkbox" name="checkbox2" value="checkbox">
m
<input type="checkbox" name="checkbox3" value="checkbox">
l
<input type="checkbox" name="checkbox4" value="checkbox">
xl
<input type="checkbox" name="checkbox5" value="checkbox">
2xl </p>
<p><font face="Arial, Helvetica, sans-serif"><img src="images/add_cart.gif" width="74" height="22"></font>
<font face="Arial, Helvetica, sans-serif"><img src="images/view_cart.gif" width="74" height="22"></font>
</p>
</form>
could you show me how i would code this to take the information and add it to a cart. im sure its simple but im just understanding it... thanks in advance
Mike