مشكلة: صفحة php لا تقرأ كود html

<?php
if (isset($_FILES['file1']) && isset($_FILES['file2'])) 
{
//Codes.....
?>

HTML Codes...
<?php
}
else
{
header('Location: index.php');
}
?>

كود الhtml الذى بين كودين الphp لا يعمل

:github


المشكلة أنك ترسل محتوى الصفحة كنص للمتصفح

header('Content-Type: text/plain; charset=utf-8');

إجعله html

 header('Content-Type: text/html; charset=utf-8');

شكراً لك (Y).