rendered paste body<?php
$submit = isset($_POST['command']);
if($submit) { }
$myList = array(1,2,3,4,5);
$myM = 10;
function mult($list, $m) {
$list = array_values($list);
for ($i = 0; $i < count($list); ++$i) {
$list[$i] *= $m;
}
return $list;
}
$myList = mult($myList, $myM);
echo implode(",",$myList);
echo "<form action=\"/test/hahahoho.php\" method=\"get\">\r\n";
echo "Lower Limit: <input type=\"text\" name=\"hehe\" value=\"\" maxlength=\"40\" />\r\n";
echo "<input type=\"submit\" name=\"command\" value=\"go\"/>\r\n";
echo "</form>";
?>