Hi,
If user checks order no(order 1, order 2, order 3), and then clicks the Picking Slip button, then the following codes should retrieve all these order 1, order 2 and order 3 and pass it to picking_slip.php.
$val contains the order no. The problem is i can only pass in the first 2 values that the user checked. The order 3 seemed to be trashed away. Can anyone solve this???
so it returns http://localhost/ups/picking_slip.php?Order=order1,order2,order
instead of
http://localhost/ups/picking_slip.php?Order=order1,order2,order3
===========================================
if($Submit==Picking_Slip)
{
static $orderString="";
while (list($var,$val) = each ($HTTP_POST_VARS))
{
if (substr($var,0,5)=="date-")
{
$orderString .= $val.",";
}
}
Header("Location: picking_slip.php?Order=$orderString");