cs_vinz78
Messages postés207Date d'inscriptionjeudi 24 mai 2007StatutMembreDernière intervention24 juillet 2007
-
25 mai 2007 à 11:48
cs_vinz78
Messages postés207Date d'inscriptionjeudi 24 mai 2007StatutMembreDernière intervention24 juillet 2007
-
25 mai 2007 à 13:45
Voila je souhaite envoyer les données d'un formulaire vers un fichier texte déja existant j'ai trouvé un code pour envoyer les champs de mon formulaire cependant j'aimerai egalement envoyer ce qu'il y a avant le champ par exemple dan mon form j'ai Nom : Mr X mon fichier texte ne prend que Mr X quel est le code pour qu'il prenne ce qu'il y a avant les :
merci
voila mon fichier texte
-Client
nom :
adresse :
telephone :
-Matériel
Marque :
Modele :
CPU :
Ram :
OS :
IE :
Connexion :
Utilisateur :
-Baseteams
Type :
Matricule :
Soc :
Profil :
Version :
Repertoire :
-Interventions
Typeint :
Date :
Numcacao :
Duree :
Transport :
Montantfrais :
Intervenant :
Nomlab :
J_G
Messages postés1406Date d'inscriptionmercredi 17 août 2005StatutMembreDernière intervention28 août 200710 25 mai 2007 à 12:07
Salut,
Je ne regarde pas ton code HTML : trop long! illisible! (cf les liens dans ma signature).
Tu pourrais essayer de faire des petits tests avant de taper dans le lourd. Nous on a besoin que des exemples tests...
J_G
Messages postés1406Date d'inscriptionmercredi 17 août 2005StatutMembreDernière intervention28 août 200710 25 mai 2007 à 13:39
Ben, forcément... il faut lire la doc
Table 91.
A list of possible modes for fopen() using <tt>mode</tt>
<colgroup><col /><col /></colgroup>----
<tt>mode</tt> |Description |----
<var>'r'</var>, Open for reading only; place the file pointer at the
beginning of the file., ----
<var>'r+'</var>, Open for reading and writing; place the file pointer at
the beginning of the file., ----
<var>'w'</var>, Open for writing only; place the file pointer at the
beginning of the file and truncate the file to zero length.
If the file does not exist, attempt to create it., ----
<var>'w+'</var>, Open for reading and writing; place the file pointer at
the beginning of the file and truncate the file to zero
length. If the file does not exist, attempt to create it., ----
<var>'a'</var>, Open for writing only; place the file pointer at the end of
the file. If the file does not exist, attempt to create it., ----
<var>'a+'</var>, Open for reading and writing; place the file pointer at
the end of the file. If the file does not exist, attempt to
create it., ----
<var>'x'</var>, Create and open for writing only; place the file pointer at the
beginning of the file. If the file already exists, the
fopen() call will fail by returning <tt>FALSE</tt> and
generating an error of level <tt>E_WARNING</tt>. If
the file does not exist, attempt to create it. This is equivalent
to specifying <var>O_EXCL|O_CREAT</var> flags for the
underlying <var>open(2)</var> system call. This option is
supported in PHP 4.3.2 and later, and only works for local files., ----
<var>'x+'</var>, Create and open for reading and writing; place the file pointer at
the beginning of the file. If the file already exists, the
fopen() call will fail by returning <tt>FALSE</tt> and
generating an error of level <tt>E_WARNING</tt>. If
the file does not exist, attempt to create it. This is equivalent
to specifying <var>O_EXCL|O_CREAT</var> flags for the
underlying <var>open(2)</var> system call. This option is
supported in PHP 4.3.2 and later, and only works for local files.