este es mi codigo... Lo q quiero hacer es q cuando me metan todas las cantidades del pedido poderlas pasar a otra pagina ya sea mediante carrito o post... pero no ser como hacerlo... Luego tendre q mandar este pedido por correo electronico, pero esta parte ya la tengo solucionada... me podeis ayudar con la 1era opcion???? Pasar el id y la cantidad...
Gracias de antemano.
Código PHP:
?>
<script language="JavaScript">
function envia(){
document.form1.submit();
}
</script>
<html>
<head>
<link href="../../../../Style/Style.css" rel="stylesheet" type="text/css">
</head>
<body class="fondo">
<form name="form1" method="post" action="index.php?fuseaction=new">
<table width="75%"align="center" cellspacing=0 cellpadding=0 bgcolor="#CCCCCC" border=0>
<tr>
<td height="10px" width="10px"></td>
<td height="10px" align="left">
<p align="left"><a href="index.php?fuseaction=list"><img src="../../../../img/sortir.gif" width="91" height="25" border="0"></a></p>
</td>
<td height="10px" align="right">
<p align="right"><a href="javascript:envia();"><img src="../../../../img/continuar.gif" width="91" height="25" border="0"></a></p>
</td>
<td height="10px" width="10px"></td>
</tr>
<tr>
<td height="10px" width="10px"></td>
<td align="center" colspan="2"><font size="3"><strong>Comandes</strong></font><p></p>
<table width="75%" cellpadding="0" cellspacing="0" class="list">
<tr>
<td align="left" class="listheader">Codi</td>
<td align="center" class="listheader">Article</td>
<td align="center" class="listheader">Quantitat</td>
</tr>
<? if ($rc_list_comanda == 0)
echo "<tr><td colspan=3 class=listitem>No hi ha resultats.</td></tr>";
for($cr_list_comanda=0;$row_list_comanda=mysql_fetch_array($qry_list_comanda);$cr_list_comanda++){
echo "<tr>";
echo "<td align='left' class=listitem>".$row_list_comanda[codiarticle]."</td>";
echo "<td align='left' class=listitem>".$row_list_comanda[nom_article]."</td>";
?>
<input type='hidden' name='idarticle[]' value='<? echo($row_list_comanda[codiarticle]) ?>'>
<td align=center width=10% class=listitem><input type='text' name='quantitat[]'></td>
<?
echo "</tr>";
}
?>
</table>
</td>
<td height="10px" width="10px"></td>
</tr>
<tr>
<td width=100 colspan="4" height="15px" align="center"></td>
</tr>
</table>
</form>
</body>
</html>