I am using a user filled form and GET and now need to do some addition calculations with the data.
$newnumber = 1;
echo "From input calculations: <br>";
while ($newnumber <= $ply) {
$newplytype = "$" . "newplytype" . $newnumber;
$plynumber = "ply" . $newnumber;
$SqInchnumber = "SqInch" . $newnumber;
$newplytype = $_GET[$plynumber] . "" . $_GET[$SqInchnumber];
echo "Ply " . $newnumber . " = " . $newplytype . "<br>";
$newnumber++;
Which produces:
From input calculations:
Ply 1 = 79374
Ply 2 = 79374
Ply 3 = 82374
Ply 4 = 81374
Ply 5 = 83374
Ply 6 = 83374
Which is correct - what I need to do now is capture that data into a stream of variables.
$ply1 = 79374;
$ply2 = 79374;
$ply3 = 82374;
$ply4 = 81374;
$ply5 = 83374;
$ply6 = 83374;
which would increment themselves with the values from the loop.
Any help or guidance is always appreciated.
Steve

New Topic/Question
Reply




MultiQuote






|