Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3148 connectés 

 


Dernière réponse
Sujet : [HTML] dans un formulaire comment on fait un champs parcourir pour...
seb63 essaie l'utilisation des types MIME :
 
<form ...enctype="image/jpeg">
 
voici un lien pour plus d'explication :
 
http://www.allhtml.com/astuces/astuces443.php

Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
seb63 essaie l'utilisation des types MIME :
 
<form ...enctype="image/jpeg">
 
voici un lien pour plus d'explication :
 
http://www.allhtml.com/astuces/astuces443.php
DrWatson

seb63 a écrit a écrit :

as-tu changé ENCTYPE="text/plain">  par ENCTYPE="multipart/form-data"> ?  




 
Ca marche un peu mieux, par contre j'ai fait un test avec un fichier .jpg et voilà ce que j'ai reçu comme pièce jointe à la place POSTDATA.ATT
 
Une idée ?
 
En tout cas ça avance, merci :)

seb63 as-tu changé ENCTYPE="text/plain">  par ENCTYPE="multipart/form-data"> ?
DrWatson Fais un copier coller de mon code, change l'@ mail et test, tu verras ce que ça fait
 
 
 
<form
        ACTION="mailto:webmaster@trance-goa.com?Subject=Psyche art" METHOD="POST"
        ENCTYPE="text/plain">
          <table border="0" width="111%">
            <tr>
              <td width="26%" align="left"><div align="left"><p>Pseudo / Nickname </td>
              <td width="83%" align="left" colspan="4"><input TYPE="text" NAME="pseudo" SIZE="30"
              MAXLENGTH="40" style="background-color:#3D3F3D; color:#6496E1"></td>
            </tr>
            <tr align="center">
              <td width="26%"><div align="left"><p>Fichier / File</td>
              <td width="83%" colspan="4"><div align="left"><p><input type="file" name="piecejointe"
              SIZE="30" MAXLENGTH="40" style="background-color:#3D3F3D; color:#6496E1"></td>
            </tr>
            <tr align="center">
              <td width="26%"></td>
              <td width="26%"><div align="left"><p><input TYPE="submit" VALUE="Envoyer / Send"
              style="background-color:#3D3F3D; color:#6496E1"></td>
              <td width="3%"></td>
              <td width="27%"><div align="left"><p><input TYPE="reset" VALUE="Recommencer / Retry"
              style="background-color:#3D3F3D; color:#6496E1"></td>
              <td width="27%"></td>
            </tr>
          </table>
        </form>
seb63 voici le formulaire complet pour être plus précis :
 
<FORM ACTION="mailto:le@mail.com?subject=mon_sujet"
  METHOD="POST" ENCTYPE="multipart/form-data">
 <INPUT TYPE="FILE" NAME="mon_fichier" SIZE="70"><BR>
 <INPUT TYPE="SUBMIT">
 </FORM>
DrWatson :(
DrWatson ça marche qu'à moitié, il m'ouvre bien une boite de localisation de fichier, ça poste mais quand je reçois le mail, je reçois pas une pièce joitne mais juste le chemin de la pièce jointe en format texte  :(
DrWatson

seb63 a écrit a écrit :

je crois que c'est <input type="file" name="nom_du_champ"> etc...  




 
je test  :)

seb63 je crois que c'est <input type="file" name="nom_du_champ"> etc...
DrWatson ... récupérer un fichier ? C'est un formulaire tout bête qui permet d'envoyer un mail mais j'aimerais qu'il ait un champs qui permettre d'attacher un fichier. Merci d'avance  :jap:  
 
Je vous file mon code html
 
<form ACTION="mailto:webmaster@trance-goa.com?Subject=Psyche art"
        METHOD="POST" ENCTYPE="text/plain">
          <table border="0" width="111%">
            <tr>
              <td width="26%" align="left"><div align="left"><p>Pseudo / Nickname </td>
              <td width="83%" align="left" colspan="4"><input TYPE="text" NAME="pseudo" SIZE="30"
              MAXLENGTH="40" style="background-color:#3D3F3D; color:#6496E1"></td>
            </tr>
            <tr align="center">
              <td width="26%" align="left">Email</td>
              <td width="83%" align="left" colspan="4"><input TYPE="text" NAME="email" SIZE="30"
              MAXLENGTH="40" style="background-color:#3D3F3D; color:#6496E1"></td>
            </tr>
            <tr align="center">
              <td width="26%">Fichier/<br>
              File</td>
              <td width="83%" colspan="4"><input TYPE="text" NAME="email1" SIZE="30" MAXLENGTH="40"
              style="background-color:#3D3F3D; color:#6496E1"></td>
            </tr>
            <tr align="center">
              <td width="26%"></td>
              <td width="26%"><div align="left"><p><input TYPE="submit" VALUE="Envoyer / Send"
              style="background-color:#3D3F3D; color:#6496E1"></td>
              <td width="3%"></td>
              <td width="27%"><div align="left"><p><input TYPE="reset" VALUE="Recommencer / Retry"
              style="background-color:#3D3F3D; color:#6496E1"></td>
              <td width="27%"></td>
            </tr>
          </table>
        </form>

Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)