hello everyone i need your help about my simple program exercise.. this is my created php code..
[code=php]
<?php
echo "<u>Output: </u></br></br>";
echo $_POST["num"]. "</br></br>";
?>
<html>
<head>
<title></title>
</head>
<body>
<h5>Input 10 Numbers:</h5>
<form action = "9.php" method = "POST">
<p style="backgrou nd-color:lavender; padding:10px;wi dth=10%">
<input type = "box" name = "num" value = "<?php echo $num; ?>" />
<p><input type = "submit" value = "Enter" onclick = "SortedArra y()"/>
<span id="SortedArray Out"></span>
</form>
</body>
</html>
[/code]
i need to sort the 10 numbers that i'll input the textbox but i don't know how.. and i need to declare the highest and lowest number.. example..
i'll input
2 56 3 76 35 54 4 7 31 0..
the output will be
0, 2, 3, 4, 7, 31, 35, 54, 56, 76
therefore.. 0 is lower than 2 and 3 is higher than 2...
tnx again!!!! godbless you all!!!!
[code=php]
<?php
echo "<u>Output: </u></br></br>";
echo $_POST["num"]. "</br></br>";
?>
<html>
<head>
<title></title>
</head>
<body>
<h5>Input 10 Numbers:</h5>
<form action = "9.php" method = "POST">
<p style="backgrou nd-color:lavender; padding:10px;wi dth=10%">
<input type = "box" name = "num" value = "<?php echo $num; ?>" />
<p><input type = "submit" value = "Enter" onclick = "SortedArra y()"/>
<span id="SortedArray Out"></span>
</form>
</body>
</html>
[/code]
i need to sort the 10 numbers that i'll input the textbox but i don't know how.. and i need to declare the highest and lowest number.. example..
i'll input
2 56 3 76 35 54 4 7 31 0..
the output will be
0, 2, 3, 4, 7, 31, 35, 54, 56, 76
therefore.. 0 is lower than 2 and 3 is higher than 2...
tnx again!!!! godbless you all!!!!
Comment