<form method="post" action = "handler.php" >
<input type="text" name="number1" />
<input type="text" name="number2" />
<input type="text" name="number3" />
<input type="text" name="number4" />
<input type="text" name="number5" />
etc..
I have a form set up like this to take in 10 different numbers. I want to add each of these numbers to an array so that I can sort the numbers. I know sort is a built in function but I want to write my own sorting algorithms I just need to get all of numbers into an array so I can pass it my functions.
$numArr = array ();
I have tried everything from array_push to call the $_POST['number1'] directly in the array itself. Every time I do echo $numArr all i get is an empty array as an output.