$result .= '</div>'; } echo $result; } // instanciation d'un Formulaire $form = new Forms('Adrien LOUGE'); // valeur Champs $arrayInputs = ['Nom', 'Prénom', 'Age', 'ville', 'Nationalité', 'Pays', 'Job', 'CP', 'Niveau d\'étude', 'others']; $size = ['1', '2', '3']; $freetime = ['sport', 'lecture', 'other ...']; $sexe = ['M', 'F']; $arrayTextareas = ['description', 'Je ne sais pas']; $arrayCheckbox = ['1', '2', '3', '4', '5']; $arrayRadio = ['Truc1', 'Truc2', 'Truc3', 'Truc4', 'Truc5']; // initiation du Form echo $form->initForm(); // Input foreach ($arrayInputs as $arrayInput) { echo $form->input($arrayInput); } // select echo $form->select('loisirs', $freetime); echo $form->select('taille', $size); echo $form->select('Sexe', $sexe); // checkbox echo $form->checkbox('Les Trucs', $arrayCheckbox); echo $form->bpRadio('Un Truc', $arrayRadio); // Textarea foreach ($arrayTextareas as $arrayTextarea) { echo $form->textarea($arrayTextarea); }