2
I have this form
and I want to pass the array (as is) $array_dos_pagamentos
to the recive.php
but I can only pass unique values. How can I pass the full array?
<form action='http://www.xxx.com/wp-content/xx/xx/recive.php' method='post' class="my-form_recibos" target='hidden-form'>
<label> <input type='checkbox' autocomplete="off" class="" name='enviarmail' value='yes' >enviar pedido de recibos ?</label>
<input type="hidden" name="result" value="<?php $array_dos_pagamentos); ?>">
<input type='Submit' value='Salvar' onclick='saved(<?php echo $fid ?>)' />
</form>
The array:
Array ( [0] => Array ( [nome] => Claudia Mateus [total] => 20 [email] => [email protected] ) [1] => Array ( [nome] => Joana Gonçalves [total] => 20 [email] => [email protected] ) [2] => Array ( [nome] => Paulo Abreu [total] => 20 [email] => [email protected] ) )
Whence
$array_dos_pagamentos
it would not be better to separate myself from other fields?– rray
You must have a better solution than that. It would be nice to explain the initial need, because in principle, if the data has to be reused, you should probably store it on the server side even temporarily. Or at least keep the structure of the original form on the next page.
– Bacco