I have this form
and I want to pass the array (as it is) $array_dos_pagamentos
to recive.php
but I can only pass single values. How can I pass the complete 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] ) )