total envoi-mail  ".StripSlashes($V_total)."
"; **/ if ($V_Faccomp == "oui" ) {$aac = "160";} if ($V_Faccomp == "non" ) {$aac = "0";} if ($V_fees == "Membre-SFP") { $fees = 140; } if ($V_fees == "NON-membre") { $fees = 190; } if ($V_fees == "Doctorant") { $fees = 0; } if ($V_fees == "Sur-place") { $fees = 250; } /** bm 3 lignes **/ if ($V_Faccomp == "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 ." Statut = ".$V_fees." \n"; $message = $message ." Dateinsc = ".$dateinsc." \n"; $message = $message . "\n"; $message = $message ." Fees = ".$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 ." TpPartDimanche = ".$V_buspartdim. "\n"; $message = $message ." TpPartMercredi = ".$V_buspartmerc. "\n"; $message = $message ." TpAccDimanche = ".$V_busaccdim. "\n"; $message = $message ." TpAccMercredi = ".$V_busaccmerc. "\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 = "raroux@lal.in2p3.fr"; //$to = "lhermitt@lal.in2p3.fr"; $message = Stripslashes(Stripslashes($message)); mail ($to, "Enregistrement Journees Accelerateurs 2011", $message, "From:".Stripslashes(Stripslashes($V_Email))); /**** Ecriture du mail dans un fichier ************************************/ ?> [LAL] Journees 2011 - Mail


Votre formulaire d'inscription a été transmis !

Un 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.


"; $V_com = strtr($V_com,"\"","'"); $V_LastName = strtr($V_LastName,"\"","'"); $paiement = "non"; /***Majuscule puis minuscule pour le nom et prenom : Mmmmmmm ***/ $lgnom = strlen($V_LastName); $nom = strtoupper(substr($V_LastName,0,1)).strtolower(substr($V_LastName,1,$lgnom)); $lgnom = strlen($V_FirstName); $prenom = strtoupper(substr($V_FirstName,0,1)).strtolower(substr($V_FirstName,1,$lgnom)); $sqlval = '("'.$prenom. '","'.$nom. '","'.$V_Instit.'","'.$V_Email. '","'.$V_StreetAdd.'","'.$V_City. '","'.$V_ZipCode.'","'.$V_Country.'","'.$V_WorkPhone. '","'.$V_Fax.'","'.$datesql. '","'.$V_fees.'","'.$fees.'","'.$V_buspartdim.'","'.$V_buspartmerc. '","'.$V_Faccomp.'","'.$mtacc.'","'.$V_busaccdim.'","'.$V_busaccmerc. '","'.$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(); ?>