40 hours else if($hourly > 40){ echo "Total pay is: ".(($hourly * $regular_pay)+ $hourly -40( * $overtime_pay) + $tips); } } //test the input data function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } ?> What I have tried: I can't find the error, I've changed everything in the >40 hours code, but I still can't get it to calculate correctly. Any suggestions would be helpful.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)