I want to allow users to insert values in a form with operators, as in this example.
60*24
I need to know what is the most appropriate way to process this in php
I want to allow users to insert values in a form with operators, as in this example.
60*24
I need to know what is the most appropriate way to process this in php
You can use eval function for that
Something like this once you submit form
echo eval($_POST['yourtextfieldname']);