How to make a conclusion without reloading the data?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
42 views
How to make without rebooting the village calculator that is written in php? here is an example code:

<?$a = $_POST['a'];$b = $_POST['b'];$b6 = $_POST['b6'];if ($_POST['button']){$c = $a + $b + $b6; echo "сумма=" . $c.'<br>'; mail("111", "Subject", "$c"); } ?> 


by | 42 views

3 Answers

0 like 0 dislike
ajax
by
0 like 0 dislike
Send a POST request to the server using AJAX and JavaScript Ohm output response to the user.
Either rewrite the calculator entirely on JS. My College was practically a job.
Here is the solution on codepen
\rhttps://codepen.io/evgrom/pen/OQrxYo
There are 4 operations. If you leave only addition will be 8 lines of js code.
by
0 like 0 dislike
ajax
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
0 like 0 dislike
3 answers
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users