php显示“;?>无论我做什么[重复]

This question already has an answer here:

I have been trying to follow the code written on youtube for creating a comment section for my website.

I use the following code for the form:

<?php

echo "<form>
<input type=-'hidden' name='uid' value='Anonymous'>
<input type='hidden' name='date' value='".date('Y-m-d H:i:s')."'>
<textarea name='message'></textarea><br>
<button type='submit' name='submit'>Comment</button>
<form>";
?>

However, when I preview in browser it shows the Comment button followed by ""; ?>"

Image of what it shows in the preview - Everything is within the proper fields - I cannot figure out for the life of me what I am doing wrong - I followed the video to the T, and there are tons of comments saying that the code works - https://www.youtube.com/watch?v=1LmPeHX7RRo

Any ideas?

</div>

As the @Ed Cottrell's comment says, you can't just run PHP without a server, try installing WampServer

Also, there are 2 problems with the HTML: type=-"hidden" in the first input should be type="hidden", and the closing form that you fixed already.