Pyramid of Stars Ascending Order in PHP

Pyramid of Stars Ascending Order in PHP. Take input from user and then show the stars or numbers in ascending order. We are using PHP in order to show this output.

<html>
<body>
<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"], ENT_QUOTES, "utf-8"); ?>">
<label>Enter the number :</label><input type="text" name="number"><br/>
<input type="submit" name="submit">
</form>
<?php
$k=htmlspecialchars($_POST["number"]);
for($i=1; $i<=$k; $i++){
for($j=1;$j<=$i;$j++){
echo $j;
}
print("<br/>");
}
?>
</body>
</html>