I have this piece of code which permits me to print multiple dates, so this is the form, which gets populated with dates separated by a comma, like 19/02/1990,12/12/1220 etc etc..
Now, what i need to do is to save them in an array and then print the array!
For the moment i have this code, could you please help me?
Thanks!
<form action="insert_date.php" method="post">
<div id="with-altField"></div>
<input type="text" id="altField" name="altField">
</div>
<input type="submit" value="Submit" />
</form>
This doesn’t work if i select more than one date, but if i select one, it does, that’s why i need to save it in an array form!
insert_date.php
<?php
$date=$_POST['altField'];
echo $date;
?>
1 Answer