Share your repls and programming experiences

← Back to all posts
Calculator - Simple PHP Calculator (Bootstrap design!)
William3 (10)

This is my first project written in/with PHP! It is a simple calculator application that supports addition, subtraction, multiplication, and division.

Check it out!

I also added this to my new site Amethyst!

Commentshotnewtop
William3 (10)

@amasad I have made a new site for math using this calculator, https://amethyst--william3.repl.co/

MarkErrett (0)

Awesome! How long did this take you? I'm wanting to do something similar with calculations

William3 (10)

@MarkErrett It took like an hour, and I'm new to PHP, you just need to know how to handle form submissions, variables, and calculating (1+1, 3-1, 5*5, 10/10)

You can check out the source code of my site Amethyst which is a math site! (https://repl.it/@William3/Amethyst)

MarkErrett (0)

@William3 thanks for the help, you inspired to finish my basic calculator too: https://repl.it/talk/share/A-calculator-for-hospitality-workers/17690

ryanokushi (1)

Your "Calculate" button actually says "Caluculate".

superpeter (2)

it doesn't seem to work in edge

William3 (10)

@superpeter Could you provide some screenshots? Should work on Edge, it's a simple PHP site, maybe wasn't working because I was modifying it as you were commenting??

William3 (10)

@superpeter Edge having issues with bootstrap might also be part of the reason it doesn't work in Edge