Forum Moderators: coopster
<form method = "GET" action = "basket.php">
<input type = "text" name = "quantity" size = "1">
<a href = "basket.php?action=additem&barCode=<?php echo $row['barCode']; ?>&quantityOrdered=*******>Add</a>
</form>
I want to pass whatever a user inputs in the above form into the "quantityOrdered" variable above where I asterisked.
I have no clue how to. Any help would be appreciated.
[edited by: ScriptJnr at 8:44 pm (utc) on Mar. 28, 2008]
then on the basket.php page you would use $_POST['quantity'] to get the quantity and $_POST['barcode'] to get the barcode.