Saturday, 1 March 2014

Simple php program


<html>
<body>


<form action="php1.php" method="post" >
What is the number E?: <input type="text" name="number"/>
<input type="submit" value="Submit"/>
</form>

<?php
for($x=0;$x<=$_POST["number"];$x++ )
{
$array[$x]=$x;
echo $array[$x]."<br/>";
}
?>
</body>
</html>

No comments:

Post a Comment