An alternate block as " if and endif "

<html>
<head>
<title>endif example</title>
</head>
<body>
<form action="endif.php" method="POST">
<input name="name" type="text"><br><input type=submit value="Please Submit">
</form>
</body>
</html>

 

<?php
$test= $_POST[name];
if($test=="Baba"):
?>
<img src="work.gif">
<?php endif;?>