I am doing a program that makes several calculations and in the end generates the result in a $resultado
, the data is entered from the HTML in <form method="POST" action="archivo.php" >
For example, in the <form>
, the user enters:
Value 1 + Value 2
They are sent to file.php by means of a button to be added and the result is output in $resultado
And what I want is that on the HTML page (even if you have to reload the page) show something like:
"Your value equals 5"
Where 5 is what is left in $resultado
.
What I wanted to know is if it can be done and if so, how to show the result in the HTML or if it is more convenient to do it all in a PHP.