PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
So it divides $var1 by $var2, then it takes that away from $var3, but for some reason it sets the $fun2 variable as "-$func1"... so it doesn't subtract, it just sets the $func variable with "-(whatever the number of $func)". Is there an error in the code that makes this happen?
$var1=$_POST['number1'];//replace number 1 with the name of the field you want as var1.
$var2=$_POST['number2'];//replace with the name of the field.
$var3=$_POST['number3'];
/*replace with the name of the field that will hold the number you want to be subtracted from.*/
$func1=$var1/$var2;
$func2=$var3-$func1;
the only thing i think that may be wrong in what i put is the firection of the slash(/)