I have a task to take input from user and push it in array. How can I take input from input field submit it, push it in to array and then do this again?
<form method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
Input Stuff in this Table :
<input type="text" name="insert">
<input type="submit" name="submit">
</form>
<?php
$insert = ($_POST["insert"]);
array_push($data, $insert);
print_r($data);
?>