instead of echoing html here, you can just end the PHP code here:
?>
<form action="...">...