Récupérer dans une variable la valeur d'une zone de texte
Bonjour à tous,
Voila mon petit soucis, je n'arrive pas à récupérer la valeur du textarea (quantité de produit commandé) au moment ou je clique sur le panier.
La quantité est à l'origine pré-rempli par une quantité mimimum de commande, ensuite le client saisie la quantité qu'il souhaite et clique sur le panier. Au secours !!!
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
echo '<td width="1500" class="descriptionP" style="padding-left: 5px;">'.$res_req_produit["libellé"];echo '</a></td>';
echo '<td class="descriptionP" style="padding-left: 0px;">'.$res_req_produit["code_art"];echo '</td>';
echo '<td class="prixP" style="padding-left: 10px;">' .$prix_remise.'€</td>';
echo '<td class="descriptionP" style="padding-left: 20px;">'.$res_req_produit["fournisseur"];echo '</td>';
echo '<td class="descriptionP" style="padding-left: 10px;">';
echo "<a href=bois1.php?code_prod=$code_art&famille=$famille&fournisseur=$fournisseur&libellé=$libellé&gencod=$gencod&ref_frs=$ref_frs&ABC=$ABC&cmd_mini=$cmd_mini&Prix_net=$Prix_net&Prix_brut=$Prix_brut&TTC=$TTC&prec=2&page=$page> Détails </a>";
echo '</td>';
echo '<td class="descriptionP" style="padding-left: 15px;">';
echo '<input type="textarea" name="quantité" value="'.$res_req_produit["cmd_mini"]; echo ' " size=1>';
echo '</td>';
//--*********************** Recup des variables *****************************
$gencod = $res_req_produit["gencod"];
$ref_frs = $res_req_produit["ref_frs"];
$ABC = $res_req_produit["ABC"];
$cmd_mini = $res_req_produit["cmd_mini"];
$TTC = $res_req_produit["TTC"];
$fournisseur = $res_req_produit["fournisseur"];
$Prix_net = $res_req_produit["Prix_net"];
$Prix_brut = round($prix_remise,2);
$LIBELLEPRODUIT = $res_req_produit["libellé"];
$PRIXPRODUIT = round($prix_remise,2);
?>
</form>
<?
?>
<td align="center"><img href="panier.php?action=ajout&l=<?php echo $LIBELLEPRODUIT;?>&q=<?php echo $QUANTITEPRODUIT;?>&p=<?php echo $PRIXPRODUIT;?>" onclick="window.open(this.href, '', 'toolbar=no, location=no, directories=no, status=yes, scrollbars=yes, resizable=yes, copyhistory=no, width=600, height=350'); return false;" src="images/addpanier.gif" alt="panier" width="35" height="20" border="0" /></td>
</tr>
<?php |
merci encore pour votre aide