Maths Problem
| From: | Meredith-Wilks, Richard | Date: | Wed, 17 Apr 2002 08:46:57 +0000 |
| Subject: | Maths Problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-93304@lists.php.net to get a copy of this message | ||
> Hi,
>
> I have a maths question.
>
> I'm trying to create a html form where a user can enter formula in an
> input box (e.g. '$a + $b - 10') and posts it to PHP.
> The variables $a and $b are known but the formula can be changed on the
> form (e.g. '$a / $b * 2').
> I want PHP to take the text input, the formula and calculate the result
> and display the results.
>
> How ?
>
> Thanks
>
> Richard