Codice PHP:
$questions = array();
$responses = array();
foreach($_POST as $key => $value){
$questions[] = $key;
$responses[] = $value;
echo "Chiave: $key - Valore: $value \n
";
}
Codice PHP:
$questions = array();
$responses = array();
foreach($_POST as $key => $value){
$questions[] = $key;
$responses[] = $value;
echo "Chiave: $key - Valore: $value \n
";
}
IP-PBX management: http://www.easypbx.it
Old account: 2126 messages
Oldest account: 3559 messages
Oppure ancora meglio:
Il PHP ha un sacco di funzioni utili, usiamole.Codice PHP:$questions = array_keys($_POST);
$answers = array_values($_POST);
Originariamente inviato da k.b
Oppure ancora meglio:
Il PHP ha un sacco di funzioni utili, usiamole.Codice PHP:$questions = array_keys($_POST);
$answers = array_values($_POST);
Giusto!!!! ;-))