Display php script in the text box at student log in form

Hi,
I have a problem with PHP Script. Please help me if anybody knows? The requirement is when we get the student login form, it shows the username in the username text box if it available in the cookie else it just leaves a blank space for user typing". But when I run the script, It shows the following script "<?=$_COOKIE['username'] ?>" in the user text box which I used in the php file. How is it comes? I also sent attachment files php script, sql database. And also sent the error image here.

