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!
But also, I'm not sure about the precedence of +'s and /'s. To be safe, you should probably wrap parentheses around the parts you want done first, like:
$total1=( ($value1 + $value2 + $value3) / $value4);
or
$total1=($value1 + $value2 + ($value3 / $value4) );
I'm not sure what you're after so I don't know where they belong. Even if only for clarity of code, I'd stick them in.
but it doesnt seem to work, this is for a form that is in html
but in your scripts you should add some clauses as i went straight to the link and just clicked the submit button and i got a nasty error message (something you dont want users to see)