I would like to know how I could send the value of $sumatotal from this php to another
$Sumatotal=0;
for($sum=0; $sum<12; $sum++){
$Sumatotal+=$sumames[$sum];
echo '<td>' . $sumames[$sum].'</td>';
}
echo '<td>' .$Sumatotal.'</td>';
the total sum value is 407
You can do it this way:
file1.php
file2.php
If you try for example to print the value of the variable
$Sumatotal
in file2.php it should look like thisWith this order it should be enough to display the content of the
$Sumavariable
because in file1.php you are already printing it with the instructionecho
THE USE OF REQUIRES