UNIVERSIDAD TECNONOLÓGICA DEL ESTADO DE ZACATECAS
UNIDAD ACADÉMICA DE PINOS
TECNOLOGÍAS DE LA INFORMACIÓN Y COMUNICACIÓN
MONICA DE LOS ANGELES RAMIREZ MORENO
TECNOLOGIAS DE LA INFORMACION Y COMUNICACIÓN(Tics)
ELOY CONTRERAS DE LIRA
4°”A”
09/OCTUBRE/2013
UNIVERSIDAD TECNONOLÓGICA DEL ESTADO DE ZACATECAS
UNIDAD ACADÉMICA DE PINOS
TECNOLOGÍAS DE LA INFORMACIÓN Y COMUNICACIÓN
EN EL INDEX.PHP es el siguiente codigo:
<body>
<form id="form1" name="form1" method="post" action="lee.php">
<table width="244" border="1">
<tr align="center">
<td width="234"> nombre
<label for="nom"></label>
<label for="nombre"></label>
<input type="text" name="nombre" id="nombre"></td>
</tr>
<tr align="center">
<td>mensaje
<label for="ms"></label>
<label for="mensaje"></label>
<input type="text" name="mensaje" id="mensaje"></td>
</tr>
<tr align="center">
<td><input type="submit" name="enviar" id="enviar" value="ENVIAR" /></td>
</tr>
</table>
</form>
<?php
$fp=fopen("archivo.txt","r");
UNIVERSIDAD TECNONOLÓGICA DEL ESTADO DE ZACATECAS
UNIDAD ACADÉMICA DE PINOS
TECNOLOGÍAS DE LA INFORMACIÓN Y COMUNICACIÓN
while(!feof($fp)){
echo fgets($fp). "<br/>";
}
fclose($fp);22221
?>
</body>
</html>
EN LEE.PHP es el siguiente codigo:
<?php
$nombre = $_REQUEST['nombre'];
$mensaje = $_REQUEST['mensaje'];
$linea = $nombre."t".$mensaje."n";
$fp=fopen("archivo.txt","a");
fputs($fp,$linea);
fclose($fp);
?>

Más contenido relacionado

PDF
Registros en php
DOCX
Familia en la ultima decada
PDF
(Interés simple 2013)
PDF
Manual de radio
PDF
Desarrollo de aplicaciones ii rosario mario
DOCX
Registros en php
Familia en la ultima decada
(Interés simple 2013)
Manual de radio
Desarrollo de aplicaciones ii rosario mario

Similar a Registros wouy (20)

DOCX
Codigo (kique)
PDF
Manejo de archivos
DOCX
manejo de archivos
DOCX
DOCX
Manejo de archivos
PDF
Manejo de archivos
PDF
Dreamweaver
PDF
Manual dreamweaver
DOCX
Final marycruzz
PPTX
Curso php dia3
DOCX
Manual freddy
PDF
Manual de crear sitio en php.
DOCX
Manual dreamweaver
DOCX
Manual de conexion
DOC
Php
DOCX
PPTX
Aprendiendo php 3
PDF
A1 u2gb manejo de archivos
PDF
Manipulación de datos
DOC
Desarrollo de aplicaciones_ii
Codigo (kique)
Manejo de archivos
manejo de archivos
Manejo de archivos
Manejo de archivos
Dreamweaver
Manual dreamweaver
Final marycruzz
Curso php dia3
Manual freddy
Manual de crear sitio en php.
Manual dreamweaver
Manual de conexion
Php
Aprendiendo php 3
A1 u2gb manejo de archivos
Manipulación de datos
Desarrollo de aplicaciones_ii
Publicidad

Más de wouyrmz (14)

PDF
Interfaces
PDF
Abstraccion
PDF
Abstraccion
PDF
Polimorfismo resumen
PDF
Normativilidad en telecomunicaciones
PDF
Antenas aplicaciones telecomunicaciones
PDF
Normas
PDF
Aplication
PDF
Tarbajo final
PDF
Tarbajo final
DOCX
Elaboracion de una bd con dreawever
DOCX
5 cosas
DOCX
Tabla comparativa de paradigma de la poo y programacion estructurada
DOCX
Tabla comparativa de paradigma de la poo y programacion estructurada
Interfaces
Abstraccion
Abstraccion
Polimorfismo resumen
Normativilidad en telecomunicaciones
Antenas aplicaciones telecomunicaciones
Normas
Aplication
Tarbajo final
Tarbajo final
Elaboracion de una bd con dreawever
5 cosas
Tabla comparativa de paradigma de la poo y programacion estructurada
Tabla comparativa de paradigma de la poo y programacion estructurada
Publicidad

Registros wouy

  • 1. UNIVERSIDAD TECNONOLÓGICA DEL ESTADO DE ZACATECAS UNIDAD ACADÉMICA DE PINOS TECNOLOGÍAS DE LA INFORMACIÓN Y COMUNICACIÓN MONICA DE LOS ANGELES RAMIREZ MORENO TECNOLOGIAS DE LA INFORMACION Y COMUNICACIÓN(Tics) ELOY CONTRERAS DE LIRA 4°”A” 09/OCTUBRE/2013
  • 2. UNIVERSIDAD TECNONOLÓGICA DEL ESTADO DE ZACATECAS UNIDAD ACADÉMICA DE PINOS TECNOLOGÍAS DE LA INFORMACIÓN Y COMUNICACIÓN EN EL INDEX.PHP es el siguiente codigo: <body> <form id="form1" name="form1" method="post" action="lee.php"> <table width="244" border="1"> <tr align="center"> <td width="234"> nombre <label for="nom"></label> <label for="nombre"></label> <input type="text" name="nombre" id="nombre"></td> </tr> <tr align="center"> <td>mensaje <label for="ms"></label> <label for="mensaje"></label> <input type="text" name="mensaje" id="mensaje"></td> </tr> <tr align="center"> <td><input type="submit" name="enviar" id="enviar" value="ENVIAR" /></td> </tr> </table> </form> <?php $fp=fopen("archivo.txt","r");
  • 3. UNIVERSIDAD TECNONOLÓGICA DEL ESTADO DE ZACATECAS UNIDAD ACADÉMICA DE PINOS TECNOLOGÍAS DE LA INFORMACIÓN Y COMUNICACIÓN while(!feof($fp)){ echo fgets($fp). "<br/>"; } fclose($fp);22221 ?> </body> </html> EN LEE.PHP es el siguiente codigo: <?php $nombre = $_REQUEST['nombre']; $mensaje = $_REQUEST['mensaje']; $linea = $nombre."t".$mensaje."n"; $fp=fopen("archivo.txt","a"); fputs($fp,$linea); fclose($fp); ?>