Can anyone make a calculator using PHP and HTML? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can anyone make a calculator using PHP and HTML?

Use a calculator using PHP function, Switch, $_Get and HTML form, input

10th Jan 2017, 11:13 AM
Rashed Ahmed
Rashed Ahmed - avatar
8 Answers
+ 6
I don't know php. sololearn doesn't even support php.
10th Jan 2017, 11:17 AM
Ahri Fox
Ahri Fox - avatar
+ 6
oh I was wrong, they have php. woops. idk, look on code playground or Google for the awnser. Or, yknow, use the course to learn how to build it. after all, what's the point of taking the course if you're not trying to learn?
10th Jan 2017, 11:31 AM
Ahri Fox
Ahri Fox - avatar
+ 5
yes. people have done it numerous times.
10th Jan 2017, 11:15 AM
Ahri Fox
Ahri Fox - avatar
+ 4
The problem you're going to have on SoloLearn is interacting with PHP twice. Once you see the results--of anything--how are you going to interact again?
10th Jan 2017, 12:38 PM
Kirk Schafer
Kirk Schafer - avatar
+ 3
You could fire up an instance at https://codeanywhere.com/ or Amazon Web Services https://aws.amazon.com/ Both are free (AWS 1 year). Then you could tinker with AJAX, REST or WebSockets (or even URL strings here on SoloLearn) to ship commands off to PHP and process answers in the browser. But if you don't have to use PHP for your assignment, Javascript's a better idea.
10th Jan 2017, 3:03 PM
Kirk Schafer
Kirk Schafer - avatar
+ 2
I guess it's much easier to make a calculator using Javascript. It's simpler and it won't cost server space for the calculations.
10th Jan 2017, 12:22 PM
P.L.P. Noij
P.L.P. Noij - avatar
+ 1
I completed PHP tutorial on Sololearn. But I have a task, make a basic calculator.
10th Jan 2017, 11:19 AM
Rashed Ahmed
Rashed Ahmed - avatar
0
please, share your code.
10th Jan 2017, 11:16 AM
Rashed Ahmed
Rashed Ahmed - avatar