Index du Forum » » SFORM

Auteur

Envoi du formulaire contact
fliaigre
913      

  Posté : 23-06-2004 12:37

Citation : mamour 

Salut,

j'ai lu les informations mais je ne comprend pas tout.

voici ce que j'ai fait dans le fichier contact mais cela ne marche pas amon avis j'ai pas mis les lignes au bon endroit.

<?
/************************************************************************/ br />/* SFORM Extender for NPDS V Contact Example */
/* =========================== */
/* */
/* 2002 - 2003 */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/ br />/* Dont modify this file is you dont know what you make */
/************************************************************************/ br />
global $ModPath, $ModStart;
$sform_path="modules/sform/";
!!include!!_once($sform_path."sform.php");

global $m;
$m=new form_handler();
//********************
$m->add_form_title("CONTACT");
$m->add_form_method("post");
$m->add_form_check("true");
$m->add_mess(" * désigne un champ obligatoire ");
$m->add_submit_value("ok");
$m->add_!!url(!!"modules.php");
$m->add_field("ModStart","",$ModStart,'hidden',false);
$m->add_field("ModPath","",$ModPath,'hidden',false);

/************************************************/
!!include!!($sform_path."contact/formulaire1.php");
/************************************************/
// Manage the


switch($ok) {

case 'Soumettre':
$m->make_response();
$message=$m->aff_response("white","not_echo","");
global $notify_email;
$message="<body>".$message."";
$dest="adresse@xxx.be"ici = $dest="adresse@xxx.be,adresse2@xxx.be"
send_email($dest, $m->title,$message,"","","html");
opentable();
echo "
Votre demande est prise en compte. Nous y répondrons au plus vite
";
closetable();
break;

default:
echo $m->print_form("white");
break;
}
?> 




Cet article provient de NPDS

http://www.npds.org/viewtopic.php?topic=11174&forum=19