Envoi de mail en javascript avec formulaire
Bonjour a tous,
je débute en programmation web et je concoi un petit site en php, j'ai un formulaire d'envoi de mail comme ceci :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
<form action="" enctype="multipart/form-data" id="form">
<table cellspacing="0" cellpadding="0" class="form">
<tr>
<td style="width:198px; height:128px">
<table cellspacing="0" cellpadding="0">
<tr>
<td style="width:198px; height:27px"><input name="nom" type="text" value="nom: "></td>
</tr>
<tr>
<td style="width:198px; height:27px"><input name="prenom" type="text" value="prenom: "></td>
</tr>
<tr>
<td style="width:198px; height:27px"><input name="tel" type="text" value="telephone: "></td>
</tr>
<tr>
<td style="width:198px; height:27px"><input name="mail" type="text" value="e-mail: "></td>
</tr>
</table>
</td>
<td style="width:202px; height:128px">
<table cellspacing="0" cellpadding="0">
<tr>
<td style="width:202px; height:109px"><textarea name="" cols="0" rows="0">message: </textarea></td>
</tr>
<tr>
<td style="width:202px; height:19px">
<br style="line-height:1px">
<img src="images/spacer.gif" alt="" width="116" height="1"><strong><a href="#" onClick="document.getElementById('form').reset()">reset</a>
</strong><img src="images/spacer.gif" alt="" width="15" height="1"><strong><a href="#" onClick="document.getElementById('form').submit()">send</a></strong> </td>
</tr>
</table>
</td>
</tr>
</table>
</form> |
En fait, il me manque le petit bout de code pour envoyer un mail en récupérant mes variables ... comment faire ? merci beaucoup