I have a PHP file I created to display 100 inputs. However, this code displays as if it was an HTML file.
I have PHP installed, and VS code is set up to use it, but it still displays incorrectly.
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php
for($i = 0; $i < 100; $i++) {
$j = $i + 1;
print "$j \r\n \r\n";
print "<input id=".$i."a>";
print "<input id=".$i."b>";
print "<input id=".$i."c><br>";
}
?>
<br>
</body>
</html>
"; print "<input>"; print "<input>
"; } ?>
This is what is displayed, but I would expect numbers from 1 - 100, and 400 input fields