0
Hi guys, how can I code a calculator in php with buttons?..
Php calculator
7 Answers
+ 1
Sula Siwale Technically, PHP can be used but that will mean that for each button click a server request will be sent. Which is not worth it considering users with 2G or slow 3G connections.
+ 3
You only need html, css and javascript for that
https://code.sololearn.com/WzuoC4arMGdh/?ref=app
https://code.sololearn.com/WA581w7B8GiA/?ref=app
https://code.sololearn.com/WN0dgrcEv5FY/?ref=app
https://code.sololearn.com/Wm4Y0rbdnfpQ/?ref=app
+ 1
Yes I know, but can't PHP also be used to validate HTML buttons?..I.e. calculator buttons???
0
So PHP can't work?
0
Sula Siwale PHP is a backend language. It is used to recieve requests from browser and create content programmatically on the server side.
0
Ohhh.. I get you, so the higher the logical operations in the code, the slower the page right?
0
Sula Siwale yes, in a way