I am trying to pass data to a server using load method like that:
$('.myform').load( "View/editEntregador.php", data, function() { });
The url I get is:
View/editEntregador.php?Array ( [id] => 67 [nome] => Augusta Ap Raym...)
So this data is been passed as an array in the URL. I can´t find a way to extract that array to an array variable in php that I can use in my page.
Any ideia?
UPDATE:
This is how the array is:
print_r($_POST);
Array
(
[id] => 67
[nome] => Augusta Ap Raymo Longo
[data_inicio] => 13/03/2016
[observacao] =>
[numero] => Array
(
[0] => 4567
[1] => 991655725
[2] => 22222222
[3] => 333333333
)
[complemento] =>
[cep] => 14076160
[estado] => SP
[cidade] => Ribeirão Preto
[bairro] => Independência
[tipo_logradouro] => Rua
[logradouro] => Brigadeiro Tobias de Aguiar
[ddd] => Array
(
[0] => 16
[1] => 16
[2] => 16
)
[id_veiculo_tipo] => 1
[placa] => bse3012
[descricao_veiculo] =>
)
I am getting undefined index trying $_POST['id'].