Pour l'envoi de mail sur mon site

psychiatrique Messages postés 9 Date d'inscription   Statut Membre Dernière intervention   -  
fred_bgt Messages postés 153 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour,
je suis nouveau dans la conception des sites, je souhaiterais insérrer une commande php pour pouvoir recevoir des mail de mon site a partir d'un formulaire

ci-dessous le code ou bien voir cette page sur le lien suivant http://www.itatransit.com/index-3.html :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Contact</title>
<link type="text/css" rel="stylesheet" href="style.css">
<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body onLoad="MM_preloadImages('images/about_sel.jpg','images/serv_sel.jpg','images/rates_sel.jpg','images/cont_sel.jpg')">
<table width="100%" style="height:700px" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="50%"><table width="100%" style="height:100%; background: url(images/rl_top_fll.jpg) top right repeat-x" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="100%" style="height:100%; background: url(images/rl_bot_fll.jpg) bottom repeat-x"></td>
</tr>
</table></td>
<td><table width="766" style="height:700px" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<!--flash --><td width="766" style="height:348px"><table style="background: url(images/hd_bg.jpg)" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="766" style="height:114px"><table cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="340" style="height:114px"><p style="margin:52px 0 0 42px"><img src="images/logo.jpg" width="280" height="52" alt=""></p></td>
<td width="426" style="height:114px; background: url(images/menu_bg.jpg) no-repeat left 62px"><table cellpadding="0" cellspacing="0" border="0" style="margin:70px 0 0 34px">
<tr>
<td width="86" style="height:15px"><a href="index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','images/about_sel.jpg',1)"><img src="images/about.jpg" name="Image3" width="86" height="15" border="0" alt=""></a></td>
<td width="95" style="height:15px"><a href="index-1.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','images/serv_sel.jpg',1)"><img src="images/serv.jpg" name="Image4" width="95" height="15" border="0" alt=""></a></td>
<td width="69" style="height:15px"><a href="index-2.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','images/rates_sel.jpg',1)"><img src="images/rates.jpg" name="Image5" width="69" height="15" border="0" alt=""></a></td>
<td width="78" style="height:15px"><img src="images/cont_sel.jpg" width="78" height="15" border="0" alt=""></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td width="766" style="height:177px"><p style="margin:40px 0 0 90px"> </p></td>
</tr>
<tr>
<td width="766" style="height:57px"><form action="">
</form></td>
</tr>
</table></td>
</tr>
<tr>
<td width="766" style="height:29px" bgcolor="#EBEEF0"><p style="margin:0 0 0 23px"><img src="images/4_h.jpg" alt=""></p></td>
</tr>
<tr>
<td width="766" style="height:225px"><table cellpadding="0" cellspacing="0" border="0" style="margin:22px 0 0 26px">
<tr>
<td><table cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="254" style="height:190px; padding-left:11px"><p style="margin:0 0 0 0"><img src="images/map.jpg" width="200" height="78" alt=""></p>
<p style="margin:7px 0 0 0"><strong>Addresse :</strong> </p> <p style="margin:7px 0 0 0"> 14, Rue Ramdane Sekhi (ex-DIDEROT)<br>
Sidi M'Hamed<strong> Alger </strong><br>
<strong>Tél : </strong>+ 213 (0) 21 66 24 79 / 66 <br>
<strong>Fax : </strong>+ 213 (0) 21 66 24 72
<br>
<strong>E-mail :</strong> ita@itatransit.com</p></td>
<td width="458" style="height:190px"><form action=""><table cellpadding="0" cellspacing="0" border="0" style="margin:0 0 0 0px">
<tr>
<td width="217"><table cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="186" style="height:15px"><p style="margin:0 0 0 0" class="wh_bold">Nom</p></td>
</tr>
<tr>
<td width="186" style="height:27px"><input type="text" style="width:207px; height:19px; margin:1px 0 0 0; border-left-color:#808080"></td>
</tr>
<tr>
<td width="186" style="height:12px"><p style="margin:0 0 0 0" class="wh_bold">Prénom</p></td>
</tr>
<tr>
<td width="186" style="height:27px"><input type="text" style="width:207px; height:19px; margin:1px 0 0 0; border-left-color:#808080"></td>
</tr>
<tr>
<td width="186" style="height:12px"><p style="margin:0 0 0 0" class="wh_bold">E-mail</p></td>
</tr>
<tr>
<td width="186" style="height:27px"><input type="text" style="width:207px; height:19px; margin:1px 0 0 0; border-left-color:#808080"></td>
</tr>
<tr>
<td width="186" style="height:12px"><p style="margin:0 0 0 0" class="wh_bold">Addresse</p></td>
</tr>
<tr>
<td width="186" style="height:27px"><input type="text" style="width:207px; height:19px; margin:1px 0 0 0; border-left-color:#808080"></td>
</tr>

</table></td>
<td width="217"><table cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="217" style="height:15px"><p style="margin:0 0 0 0" class="wh_bold">Message</p></td>
</tr>
<tr>
<td width="217" style="height:151px"><textarea style="width:217px; height:141px; margin:1px 0 0 0; overflow:auto; border-left-color:#808080"></textarea></td>
</tr>
<tr>
<td width="217" style="height:19px"><table cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="151" style="height:19px" class="align_right"> <input type="reset" name="Submit2" value="Réinitialiser"></td>
<td width="66" style="height:19px" class="align_right"><input name="Submit" type="submit" value="Envoyer"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></form></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td width="766" style="height:98px; background: url(images/footer_bg.jpg) top repeat-x"><table cellpadding="0" cellspacing="0" border="0" style="margin:16px 0 0 223px">
<tr>
<td width="86" style="height:10px"><p style="margin:0 0 0 0"><a href="index.html" class="nav">ACCUEIL</a></p></td>
<td width="95" style="height:10px"><p style="margin:0 0 0 0"><a href="index-1.html" class="nav">PRESENTATION</a></p></td>
<td width="69" style="height:10px"><p style="margin:0 0 0 0"><a href="index-2.html" class="nav">SERVICES</a></p></td>
<td width="70" style="height:10px"><p style="margin:0 0 0 0" class="nav_sel">CONTACT </p></td>
</tr>
</table>
<p style="margin:25px 0 0 194px" class="copy">© All rights reserved. I.T.A TRANSIT.2009
<script type="text/javascript">var dt = new Date(); var year = dt.getFullYear(); document.write(year)</script>
. <a href="#" class="terms">Privacy policy</a> | <a href="#" class="terms">Terms of use</a></p></td>
</tr>
</table></td>
<td width="50%"><table width="100%" style="height:100%; background: url(images/rl_top_fll.jpg) top left repeat-x" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="100%" style="height:100%; background: url(images/rl_bot_fll.jpg) bottom repeat-x"></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
A voir également:

5 réponses

Nico_ Messages postés 1219 Date d'inscription   Statut Membre Dernière intervention   189
 
bonjour,

j'ai pas étudier ton code, Voici un générateur de formulaire php

bonne journée
1
psychiatrique Messages postés 9 Date d'inscription   Statut Membre Dernière intervention  
 
je connais ca mais ca ne m aide pas beaucoup
0
fred_bgt Messages postés 153 Date d'inscription   Statut Membre Dernière intervention   22
 
peux-tu reformuler ton problème stp ?
0
psychiatrique Messages postés 9 Date d'inscription   Statut Membre Dernière intervention  
 
je souhaite recevoir un mail du formulaire que j'ai sur la page, et on m a dis pour pouvoir faire ca il faut que ca soit en php, alors je veux juste que le formulaire que j ai crée sur ma page http://www.itatransit.com/index-3.html puisse m'envoyer un mail avec tout le formulaire rempli sans utiliser outlook ou autre chose et que je recoit apres sur ma boite mail du site que j ai déja défini pour ca,
merci pour votre aide
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
fred_bgt Messages postés 153 Date d'inscription   Statut Membre Dernière intervention   22
 
Très simple :
tu utilises la fonction mail de PHP
Attention à bien configurer tes headers pour le formatage de tes emails.

Si tu ne connais rien au PHP, je te conseille de t'y mettre dès amintenant et d'être patient, la route est longue ...

Je pense (à la vue du code source de ton site), que tu as utilisé un éditeur graphique pour le développer. Je me trompe peut-être.
En PHP, tu dois tout écrire à la main. C'est le mieux, car tu maîtrises totalement le contenu de ton site.

Jette un oeil sur Google pour programmer en PHP.

Si tu as d'autres questions, n'hésites pas.
0