Index du Forum » » SFORM

Auteur

probleme ou vont les messages ???
acsipt
15   

  Posté : 08-03-2007 07:46

Salut à tous,

Merci de m'accorder un peu de votre temps.
Je confirme que c'est bien la fonction e-mail qui est activée dans l'admin.
Aucune modif pour friend.php et juste quelques petites modifs CSS pour le formulaire.



<?PHP
/************************************************************** **********/
/* SFORM Extender for NPDS SABLE Contact Example                         */
/* ===========================        &nbs p;              ;                     */
/*            &nb sp;            &nbs p;              ;                           & nbsp;    */
/* 2002 - 2005            &nb sp;            &nbs p;              ;        */
/*            &nb sp;            &nbs p;              ;                           & nbsp;    */
/* 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 />
$m->add_form_field_size(50);
$m->add_title("<span class=\"TITREA\">[french]Formulaire de contact :[/french][english]Contact us[/english]</span>");
$m
->add_field('nom', "[french]Nom, Raison Sociale ou nom du Gro upe (artiste)[/french][english]Name/Corporate name[/english]",$nom,'text',true,150,"","");
$m
->add_field('ad1', "[french]Adresse[/french][english]more address[/english]",$ad1,'text',false,150,"","");
$m
->add_field('ville', "[french]Ville[/french][english]City[/english]",$ville,'text',false,150,"","");
$m
->add_field('dpt', "[french]Département[/french][english]Department[/english]",$dpt,'text',false,50,"","");
$m
->add_field('cpt', "[french]Code Postal[/french][english]Postal code[/english]",$cpt,'text',false,5,"","0-9");
  $m
->add_extra("<tr><td colspan=2> </td></tr>");
$m
->add_field('tel', "[french]Tel[/french][english]Phone[/english]",$tel,'text',false,25,"","0-9extend");
$m
->add_field('fax', "[french]Fax[/french][english]Fax[/english]",$fax,'text',false,25,"","0-9extend");
$m
->add_field('mob', "[french]Mobile[/french][english]Gsm[/english]",$mob,'text',false,25,"","0-9extend");
$m
->add_field('email', "[french]Adresse de messagerie[/french][english]mail address[/english]",$email,'text',true,255,"","email");
  $m
->add_extra("<tr><td colspan=2> </td></tr>");
$m
->add_field('act', "[french]Activité[/french][english]Activity[/english]",$act,'text',false,150,"","");
$m
->add_field('des', "[french]Description de votre demande[/french][english]Your request[/english]",$des,'textarea',true,400,10,"","");
$m
->add_comment("<center>[french]Ces informations sont publiques, mais  vous disposez d'un droit permanent de modificatio n.[/french][english]This information is public, but you&nb sp;have a permanent right of modification.[/english]</center>");

// ----------------------------------------------------------------
// CES CHAMPS sont indispensables --- Don't&nbs p;remove these fields
$m
->add_extra("<tr><td align=center colspan=2>"
);
// Reset bouton
$m
->add_field("","","effacer",'reset',false);
// Return bouton
$m
->add_extra(" -::- ");
$m
->add_extra("<a href=\"#\" !onclick!=\"history.back()\">[french][ Retour ][/french][english][ Back ][/english]</a>");
// Submit bouton
$m
->add_extra(" -::- ");
$m
->add_field("","","[french]Soumettre[/french][english]Submit[/english]",'submit',false);
$m
->add_extra("</td></tr>");
// ----------------------------------------------------------------
?>





Cet article provient de NPDS

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