Voila c'Est que je sais pas comment envoyer sur mon adresse email quand on clique sur envoyer
<input type="text" name="nom" value="valeur par défaut" />
<input type="password" name="nom" value="valeur par défaut" />
<form method="post" action="page.php" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="12345" />
<form method="post" action="reception.php" enctype="multipart/form-data">
<label for="icone">Icone du fichier (JPG, PNG ou GIF | max. 15Ko):</label><br />
<input type="file" name="icone" id="icone" /><br />
<label for="mon_fichier">Fichier (Tous formats | max. 1Mo):</label><br />
<input type="hidden" name="MAX_FILE_SIZE" value="1048576" />
<input type="file" name="mon_fichier" id="mon_fichier" /><br />
<label for="titre">Titre du fichier (max 50 caractères):</label><br />
<input type="text" name="titre" value="Titre du fichier" id="titre" /><br />
<label for="description">Description de votre fichier (max 255 caractères):</label><br />
<textarea name="description" id="description"></textarea><br />
<input type="submit" name="submit" value="Envoyer" />
</form>
<input name="destinataire" type="hidden" value="lifeguardsonduty@hotmail.com" />
<?php
$nom = microtime();
$nom = "mes_fichiers/".str_replace(' ','',$nom);
$resultat = move_uploaded_file($_FILES['icone']['tmp_name'],$nom);
if ($resultat) echo "Transfert réussi";
?>
|