I have this array $newArray, it has been built inside of a POST form, so I want to send the whole array in a INPUT as hidden:
Array
(
[0] => Array
(
[day1to7] => 1
[timeHHMM] => 10:00
)
[1] => Array
(
[day1to7] => 1
[timeHHMM] => 11:00
)
[2] => Array
(
[day1to7] => 1
[timeHHMM] => 12:00
)
[3] => Array
(
[day1to7] => 5
[timeHHMM] => 14:00
)
)
Could you please help me to know how shall I write it in INPUT?
echo '<input type="hidden" name="newArraySend" value="'. $newArray[day1to7]['timeHHMM'] . '">'; -> this is my wrong try
And also, please let me know how could I receive it?
$newArrayReceived = $_POST['newArraySend']; ->this also is wrong I think
Thank you very much in advance, Felipe
day1to7andtimeHHMM$_SESSIONif you want to avoid it to be edited and having to re-validate the data