The following id my php code
<html>
<head>
Checking !
</head>
<body>
<?php
$errors_array=array();
if(isset($_REQUEST["welcome_already_seen"])){
check_data();
if(count($error_array)!=0){
show_error();
show_welcum();
}
else{
handle();
}
}
else {
show_welcum();
}
function show_welcum(){
echo "<form method='post'>";
echo "What's your ice cream flavour?";
echo "<br>";
echo "<input name='flavor' type='text'>";
echo "<br>";
echo "<input type='submit' value='send'>";
echo "<br>";
echo "<input type='hidden' name='welcum'>";
echo "</form>";
}
function check_data(){
global $error_array;
if($_REQUEST["flavour"]==""){
echo "<font color='red'> Please enter a value </font>";
}
}
function show_error(){
global $error_array;
foreach($error_array as $err){
echo $err,"<br>";
}
}
function handle(){
echo "your favourite ice cream flavour is ";
echo $_REQUEST["flavour"];
?>
</body>
</html>
but when I run it on the browser , it shows a blank screen, why?