I have this PHP
code:
$htmlCode = '
<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" method="post">
</form>
';
And I want to put it in a part of my HTML
using this:
<html>
<?php
echo $htmlCode;
?>
</html>
But when I open the file it shows this:
And I don't know why. Please help