I want to have a form that calls itself upon submit that will get information from a form and save that data (employee name and action -terminated or hired) into an array that I can list at the bottom of the form. Any help would be appreciated.
<?php
echo "<form name=changes action=array.php method=post>";
echo "<input type=text name=ename size=25>";
echo "<select name=eaction>";
echo "<option value=\"Hired\">Hired";
echo "<option value=\"Terminated\">Terminated";
echo "</select>";
echo "<input type=submit value=\"Enter\">";
echo "</form>";
array_push($changes, $ename, $eaction);
foreach($changes as $ee => $action)
{
echo "$ee - $eaction<br>";
}
?>
etreu