total envoi-mail  ".StripSlashes($V_total)."
"; **/ /** $aac = "non"; **/ /** if ($V_Faccomp == "210" ) {$aac = "samedi";} **/ /** if ($V_Faccomp == "150" ) {$aac = "dimanche";} **/ /** bm 3 lignes **/ if ($V_tppart == "non" ) {$V_buspart = "non";} if ($V_Faccomp == "non" ) {$V_busacc = "non";} if ($V_tpacc == "non" ) {$V_busacc = "non";} $message = "\n"; $message = $message." Enregistrement Journees Accelerateurs"." \n"; $message = $message." -------------------------------------"."\n"; $message = $message . "\n"; $message = $message . "\n"; $message = $message ." FirstName = ".$V_FirstName." \n"; $message = $message ." LastName = ".$V_LastName." \n"; $message = $message ." Institut. = ".$V_Instit." \n"; $message = $message ." Email = ".$V_Email. "\n"; $message = $message ." Address = ".$V_StreetAdd. "\n"; $message = $message ." City = ".$V_City. "\n"; $message = $message ." ZipCode = ".$V_ZipCode. "\n"; $message = $message ." Country = ".$V_Country. "\n"; $message = $message ." Phone = ".$V_WorkPhone. "\n"; $message = $message ." Fax = ".$V_Fax." \n"; $message = $message ." Doctorant = ".$V_Thesard." \n"; $message = $message ." Dateinsc = ".$dateinsc." \n"; $message = $message . "\n"; $message = $message ." Fees = ".$V_fees. "\n"; $message = $message ." Accompagnant = ".$V_Faccomp. "\n"; $message = $message . "\n"; $message = $message ." Total = ".$V_total. "\n"; $message = $message ." Moyen de payement = ".$V_mpay. "\n"; $message = $message ." Confirmation de payement = ".$V_confpay. "\n"; $message = $message . "\n"; $message = $message ." TpPart = ".$V_tppart. "\n"; $message = $message ." BusPart = ".$V_buspart. "\n"; $message = $message ." TpAcc = ".$V_tpacc. "\n"; $message = $message ." BusAcc = ".$V_busacc. "\n"; $message = $message . "\n"; $message = $message ." Buffet = ".$V_buffet. "\n"; $message = $message ." Buffet accomp= ".$V_buffetacc. "\n"; $message = $message ." Repas = ".$V_repas. "\n"; $message = $message ." Repas accomp = ".$V_repasacc. "\n"; $message = $message . "\n"; $message = $message ." Commentaires = ".$V_Com. "\n"; $message = $message . "\n"; /*** Stripslashes permet de retirer les /' ou /" *****************************/ $to = "mouton@lal.in2p3.fr"; $message = Stripslashes(Stripslashes($message)); mail ($to, "Enregistrement Journees Accelerateurs 2009", $message, "From:".Stripslashes(Stripslashes($V_Email))); /**** Ecriture du mail dans un fichier ************************************/ ?> [LAL] Journees 2009 - Mail


Votre formulaire d'inscription a été transmis !

Une message électronique vous sera envoyé pour confirmation de votre enregistrement.

Si vous ne recevez pas cette confirmation (email) dans un délais raisonnable, merci de contacter le sécrétariat (mouton@lal.in2p3.fr).

Merci de votre inscription. A bientôt.


"; */ $sqlval = '("'.$prenom. '","'.$nom. '","'.$V_Instit.'","'.$V_Email. '","'.$V_StreetAdd.'","'.$V_City. '","'.$V_ZipCode.'","'.$V_Country.'","'.$V_WorkPhone. '","'.$V_Fax.'","'.$datesql. '","'.$V_fees.'","'.$fees.'","'.$tpp. '","'.$V_Faccomp.'","'.$mtacc.'","'.$tpa. '","'.$V_total.'","'.$V_mpay.'","'.$paiement.'","'.$paiement. '","'.$V_buffet.'","'.$V_buffetacc.'","'.$V_repas.'","'.$V_repasacc. '","'.addSlashes($V_Com).'")'; /*** echo "sqlcol=".$sqlcol."
"; echo "sqlval=".$sqlval."
"; ***/ require ("./bd/connect.php"); $connexion =mysql_pconnect (SERVEUR,NOM,PASSE); if (!$connexion) { echo "Prob. connexion à ".SERVEUR. "
\n"; exit; } if (!mysql_select_db (BASE,$connexion)) { echo "Prob. accès à la base ".BASE. "
\n"; exit; } $requete ="INSERT INTO ".TABLE." ".$sqlcol." VALUES ".$sqlval ; /** echo "req:".$requete."
\n"; **/ $resultat = mysql_query ($requete,$connexion); /*** echo "
resultat=".$resultat; ***/ if ($resultat != 1) { echo "Erreur ecriture dans ".TABLE." \n"; } else { /*** echo "Ecriture OK.\n"; ***/ } /*** $id = mysql_insert_id(); echo "id=".$id."\n"; ***/ mysql_Close(); ?>