please tell me about the error in this code and help me to resolve the error
<html>
<head>
<title>
using one page to accept and process data.
</title>
</head>
<body>
<h1>
using one page to accept and process data.
</h1>
<?php
if (isset($_REQUEST ["flavour"]) ) {
echo "your favourite flavour is". $_REQUEST["flavour"] ;
}
?>
<?php
if (isset($_REQUEST["name"] ) ) {
echo "your name is" . $_REQUEST["name"];
}
else {
?>
<form method = "post" action = "phpone.php">
what is your favourite ice cream flavor?
<input name = "flavor" type = "text">
<br>
<br>
what is your name?
<input type = "text" name = "name" >
<br>
<br>
<input type = submit value = submit >
</form>
<?php
}
?>
</body>
</html>
phpone1.php