2006/4/29, Smart Software <[EMAIL PROTECTED]>:
code below shows all records from products table with an textbox and an
order button for each record
<? $query1 = mysql_query("SELECT * FROM products ");
while ($rowType = mysql_fetch_array($query1))
{ ?>
<table width="500" border="0">
<tr class="largeheader">
<td width="40%"><? echo "$rowType[0]"; ?></a> </td>
<td width="10%"><?php echo "$rowType[1]"; ?></td>
<td width="10%"><input name="quantity" type="text" value="1" size="1"
maxlength="3"></td>
<td width="40%"> <a href="<? echo
"products.php?cat=$cat&toevoegen=1&id=$rowType[7]"; ?>"><img
src="images/bestel1.gif" border="0"></a></td>
</tr>
<?php
}
?>
</table>
if someone presses the button, an item will be ordered.
How can i add the content of the textbox?
i tried this:
<td width="40%"> <a href="<? echo
"products.php?cat=$cat&quantity=$quantity&toevoegen=1&id=$rowType[7]";
?>"><img src="images/bestel1.gif" border="0"></a></td>
but all i get is an error telling me there is a undefined varable
Can you post what the error looks like?
thanx for all help
N. Karademir
--
PHP General Mailing List ( http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php