Ver Mensaje Individual
  #13 (permalink)  
Antiguo 05/10/2015, 17:43
alexhacker22
 
Fecha de Ingreso: julio-2011
Mensajes: 24
Antigüedad: 12 años, 9 meses
Puntos: 0
Respuesta: Imprimir array php

Código HTML:
<form action="recive.php" id="form-main" method="post">
<input id="new_Customer_Customer_ContactInfo_2__Fk_TypeId" name="new.Customer.Customer_ContactInfo[2].Fk_TypeId" type="hidden" value="Hola mundo" />
<input id="new_Customer_Customer_ContactInfo_2__Visible" name="new.Customer.Customer_ContactInfo[2].Visible" type="hidden" value="Hola Alex" />
</form> 

Resultado var_dump($_POST);

Código PHP:
array(1) {
  [
"new_Customer_Customer_ContactInfo"]=>
  array(
1) {
    [
2]=>
    
string(9"Hola Alex"
  
}



Resultado con prin_r

Código PHP:
Array
(
    [
new_Customer_Customer_ContactInfo] => Array
        (
            [
2] => Hola Alex
        
)