$row = $form{id}; my $insert=qq~ insert into cart (id,cat_num) select id,catalog_num from tracks where id ='$row'~;