i have a php loop running that returns a list of numbers between two variables that i want a user to enter... for example if you entered 5 and 30, all the numbers between 5 and 30 would appear in a table five cols across... I have all of the structure of that loop down (see below) and im just totally stuck on how to make this into a redux where the user will enter their data and have it returned in one file... Any help would be greatly appreciated (and yes, i know all the negatives of a redux but i have to use it!)
<?php
$num1 = 1;
$num2 = 25;
$col = 0;
echo "<table>";
echo "<tr>";
for($num = $num1; $num <= $num2; $num++) {
echo "<td>".$num."</td>";
$col++;
// printing a new row
if($col % 5 == 0) echo "</tr><tr>";
}
echo "</tr>";
echo "</table>";
?>