Citation de code source en PHPn° 224
13 July 2014 à 11:58
$recherche = array();
foreach($particulier as $k=> $v)
{
switch($k)
{
case 'civilite':
$recherche['civilite'] = $v;
break;
case 'nom':
$recherche['nom'] = $v;
break;
case 'prenom':
$recherche['prenom'] = $v;
break;
case 'code_postal':
$recherche['cp_ville']['codepostal'] = $v;
break;
case 'ville':
$recherche['cp_ville']['ville'] = $v;
break;
case 'telephone':
$recherche['telephone'] = $v;
break;
case 'email':
$recherche['email'] = $v;
break;
default: break;
}
}
$form->bind($recherche);