PHP parse error on elseif?

Seiko K

New member
<?php

$one = $_POST[Ra]+$_POST[P];

$two = $_POST[Ra]-$_POST[Rp];

$three = $_POST[D]*$two;

$four = $three+$one*$_POST[Rp];

$a = $four*$_POST[D];


if($a>10)
echo "Contact the nearest florist immediatly";
elseif ($a>5 and $a<=10)
echo "Prepare a few remarks and deliver them with sincerity";
elseif ($a>1 $a<=5)
echo 'You should at least offer a perfunctory "sorry"';
else
echo "You do not need to apologize"

?>

I'm getting the parse error on the second elseif. I can comment out that line and it will work fine. I've tried doing this several ways and I just can't get it to work. What am I missing on that line?
Tried to switch the quotes around as suggested but I still have a parse error on line 18 (The line that the elseif is on)
 
Back
Top