I have a simple form on index.php. This $dAta array is contained on the page and has a few existing elements to it. I am trying to add an entry into the array from the $_POST. Any ideas?
Listed below is my code
<?php
$dAta = array(1 => "961204","961205","961206",);
?>
<FORM METHOD=POST ACTION="index.php">
<input name="field1" type="text" size="80" value="">
<INPUT TYPE=submit VALUE="Enter">
<?php
$d = count($dAta);
$d = $d + 1;
$dAta[$d] = $_POST['field1'];
?>