if ($_POST['enter']) {
$mass = ($_POST['mass']);
$area = ($_POST['area']);
$cd = ($_POST['cd']);
if ($mass > 0 && $front > 0) {
$result = terminalVelocity($mass,$cd,$area);
echo "The terminal velocity of the is: ". round($result,2);
} else {
echo "You must have a value for each input";
}
The number of {
s compared with }
s doesn't match. Try:
if ($_POST['enter']) {
$mass = ($_POST['mass']);
$area = ($_POST['area']);
$cd = ($_POST['cd']);
if ($mass > 0 && $front > 0) {
$result = terminalVelocity($mass,$cd,$area);
echo "The terminal velocity of the is: ". round($result,2);
}
} else {
echo "You must have a value for each input";
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…