Código PHP:
  
  <?php
                
                $cnt = array();
                $products = array();
                
                foreach($_POST as $key=>$value)
                {
                    $key=(int)str_replace('_cnt','',$key);
                
                    $products[]=$key;
                    $cnt[$key]=$value;
                }
 
                $result = mysql_query("SELECT * FROM internet_shop WHERE id IN(".join($products,',').")");
                
                if(!mysql_num_rows($result))
                {
                    echo '<h1>There was an error with your order!</h1>';
                }
                else
                {
                    echo '<h1>You ordered:</h1>';
                    
                    while($row=mysql_fetch_assoc($result))
                    {
                        echo '<h2>'.$cnt[$row['id']].' x '.$row['name'].'</h2>';
                        
                        $total+=$cnt[$row['id']]*$row['price'];
                    }
        
                    echo '<h1>Total: $'.$total.'</h1>';
                }
                ?>    
De antemano...muchas gracias a todos
Saludos!
Leonidas
 

