Forum » » SFORM » » [Résolu] - Sform pour formulaire à saisir sur le forum ET simultanément pour envoi par E-mail ?
Posté : 5 nov. 2005 à 13:23
/************************************************************************/
$sform_path="modules/sform/";
!include!_once($sform_path."sform.php");
global $m;
$m=new form_handler();
//********************
$m->add_form_title("Constat_Etat_Critique");
$m->add_form_method("post");
$m->add_form_check("false");
$m->add_mess(" * désigne un champ obligatoire ");
$m->add_submit_value("submitS");
$m->add_!url(!"newtopic.php");
/************************************************/
!include!($sform_path."forum/$formulaire");
/************************************************/
if( !isset($GLOBALS["submitS"]) ){
echo $m->print_form("class=\"LIGNA\"");
/***************** ici test début *******************************/
$m->make_response();
$message=$m->aff_response("white","not_echo","");
$message="<html><body>".$message."</body></html>";
send_email("adresse_une@exemple.be,adresse_deux@exemple.be", $m->title,$message,"","","html");
/***************** ici test fin *********************************/
} else {
$message=$m->aff_response("class=\"LIGNA\"","not_echo","");
}
?>
Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=18283&forum=19