PHP Development Issue - the sequel

I have this code in place to define the quantity function (thx Brian:)...

$qty_string = "<input type=\"text\" size=\"2\" name=\"qty[]\" style=\"font-family: verdana; font-size: 8pt\" value=\"";

// Item 1
$qty = $_POST["qty"][0];                  // Quantity after Update
$with_disc01 = round( (($price01*(round($discount01/100, 2)))-$price01), 2);
$ext_npl01 = ($price01*$qty);
$ext_inst01 = ($inst01*$qty);
$ext_maint01 = ($maint01*$qty);
$ext_usc01 = ($cost01*$qty);
// Item 2
$qty = $_POST["qty"][1];                  // Quantity after Update
$with_disc02 = round( (($price02*(round($discount02/100, 2)))-$price02), 2);
$ext_npl02 = ($price02*$qty);
$ext_inst02 = ($inst02*$qty);
$ext_maint02 = ($maint02*$qty);
$ext_usc02 = ($cost02*$qty);
// There will be a total of 64 Items, this is just 2 of them

So now I am working on creating totals and am looking for a way to use the existing quantities specified by the user, per item, to create them.  I have tried a few different ways, but being a n00b I'm not having much luck.  Here's an example of what I have tried...

$x_ext_npl = (($price01*$qty_string . $_POST["qty"][0])+($price02*$qty_string . $_POST["qty"][1])+($price03*$qty_string . $_POST["qty"][2]));
$x_ext_inst = (($inst01*$qty_string . $_POST["qty"][0])+($inst02*$qty_string . $_POST["qty"][1])+($inst03*$qty_string . $_POST["qty"][2]));
$x_ext_maint = (($maint01*$qty_string . $_POST["qty"][0])+($maint02*$qty_string . $_POST["qty"][1])+($maint03*$qty_string . $_POST["qty"][2]));
$x_ext_usc = (($cost01*$qty_string . $_POST["qty"][0])+($cost02*$qty_string . $_POST["qty"][1])+($cost03*$qty_string . $_POST["qty"][2]));
$x_ext_disc = (($with_disc01*$qty_string . $_POST["qty"][0])+($with_disc02*$qty_string . $_POST["qty"][1])+($with_disc03*$qty_string . $_POST["qty"][2]));

Welll, it didn't work :)  Anyone have any ideas?  thanks for the help.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Is it just me, or are you trying to multiple a numeric value with a string? :)  Try this instead:

$x_ext_npl = (($price01*$_POST["qty"][0])+($price02*$_POST["qty"][1])+($price03*$_POST["qty"][2]));

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
So the whole thing would look like this:

$x_ext_npl = (($price01*$_POST["qty"][0])+($price02*$_POST["qty"][1])+($price03*$_POST["qty"][2]));
$x_ext_npl = (($inst01*$_POST["qty"][0])+($inst02*$_POST["qty"][1])+($inst03*$_POST["qty"][2]));
$x_ext_npl = (($maint01*$_POST["qty"][0])+($maint02*$_POST["qty"][1])+($maint03*$_POST["qty"][2]));
$x_ext_npl = (($cost01*$_POST["qty"][0])+($cost02*$_POST["qty"][1])+($cost03*$_POST["qty"][2]));
$x_ext_npl = (($with_disc01*$_POST["qty"][0])+($with_disc02*$_POST["qty"][1])+($with_disc03*$_POST["qty"][2]));
mikemanerAuthor Commented:
That was it, thanks m8, I am still a bit confused by syntax at this point.  I 'AM' learning though :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.