Je veux code deux pages une html et une php

Fermé
nouige - 11 janv. 2011 à 19:11
xamurai Messages postés 223 Date d'inscription mardi 11 janvier 2011 Statut Membre Dernière intervention 19 février 2013 - 12 janv. 2011 à 04:45
Bonjour,



SVP, Je veux code deux pages une html et une php pour téléchatger deux fichier et l'envoyer à mon email.


Merci pour votre aide.
A voir également:

2 réponses

xamurai Messages postés 223 Date d'inscription mardi 11 janvier 2011 Statut Membre Dernière intervention 19 février 2013 15
11 janv. 2011 à 22:24
et as tu dejà commencé? ou attends tu un travail fini.
0
J'ai commencer avec ca , mais ca marche pas,
page html :
<html>
<head>
<title></title>
</head>
<body>
<form action="mail.php" method="post" enctype="multipart/form-data">
CV<input type="file" name="fichier1" />
LM<input type="file" name="fichier2" />
<input type="submit" value="Uploader" />
</form>
</body>
</html>

page php :


<?php



$fichier1=$_POST["fichier1"];
$from=htmlspecialchars("From: ".$fichier1);
$fichier2=$_POST["fichier2"];
$from=htmlspecialchars("From: ".$fichier2);



$destinataire="nouigeabdel@yahoo.com";

mail($destinataire,$fichier1,$fichier2,$from);


?>


Aider moi SVP.
0
xamurai Messages postés 223 Date d'inscription mardi 11 janvier 2011 Statut Membre Dernière intervention 19 février 2013 15
12 janv. 2011 à 04:45
0