Posts by Marcus Monteiro • 86 points
2 posts
-
1
votes3
answers982
viewsA: Operation in PHP. Multiplication using percentage
I will only supplement the previous answers, because both are absolutely right: <?php function acrescenta($valor, $percentual){ return($valor * ( 1 + ($percentual / 100))); } ?> You use so…
phpanswered Marcus Monteiro 86 -
6
votes4
answers7781
viewsA: Login does not redirect, header('Location')
1 - First of all, enable all error messages. So it will probably be explicit what is going wrong on the remote server. 2 - Try to move validations to code start. Many servers do not accept…