Blog > detail

Just my tiny mind

PHP Calculator Using Eval

26-2-2012 Admin General 2 Comments

PHP Calculator Using Eval

Continuing my previous post Javascript Calculator Using Eval, in this post, I will try to share also to make a simple PHP Calculator Using Eval. Unlike Javascript Calculator Using Eval PHP Calculator Using Eval using PHP code that reside inside the form. We will use form tag that targeted to the file it self.


The HTML and PHP code:



Make sure to save the file with the extension .php. Otherwise it wont work.


Our PHP Calculator Using Eval here have similar function with Javascript Calculator Using Eval that can calculate a simple calculation such as addition, reduction, multiplication and division. It also can handle parenthesis.


The different of this PHP Calculator Using Eval with Javascript Calculator Using Eval is the  PHP Calculator Using Eval has to reload the page to calculate your inputted query, while the Javascript Calculator Using Eval is not reloading the page.


I wish this PHP Calculator Using Eval is useful for you.


Good Luck


Related Post:


Javascript Calculator Using Eval


PHP Calculator Using Eval PHP Calculator Using Eval PHP Calculator Using Eval

PHP Calculator Using Eval

word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word

PHP Calculator Using Eval

PHP Calculator Using Eval

PHP Calculator Using Eval