1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
$form = new HTML_QuickForm('frmQuestion', 'post', 'index.php&id=2');
$form->addElement('radio', 'choix', 'Vous etes:', 'Un candidat', 'candidat');
$form->addElement('radio', 'choix', '', 'Une entreprise', 'entreprise');
$form->addElement('submit', 'bouton_envoyer', 'OK');
if ($form->validate()) {
$form = new HTML_QuickForm('frmInfos', 'post', 'index.php?id=2');
$form->addElement('text', 'Fnom', 'Nom');
$form->addElement('text', 'Fprenom', 'Prenom');
$form->addElement('text', 'Femail', 'Email');
$form->addElement('text', 'Fobjet', 'Objet');
$form->addElement('submit', 'bouton_envoyer', 'OK');
if ($form->validate()) {
echo "OK";
}else{
$form->display();
}
}else{
$form->display();
} |
Partager