Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/01/2005, 03:06
Shute
 
Fecha de Ingreso: septiembre-2004
Ubicación: Viviendo en Manresa(Barcelona)
Mensajes: 230
Antigüedad: 19 años, 6 meses
Puntos: 0
Vendria a ser una cosa asi:

Código PHP:
//script del formulario

<form action=form.php method=POST enctype=multipart/form-data>
<
tr>
   <
td width="183" height="128" valign="top">Nombre:</td>

  <
td width="275" height="128" valign="top><input type="text" name="nom"></td>
  
  <td width="
183" height="128" valign="top">Apellidos:</td>
  
  <td width="
275" height="128" valign="top><input type="text" name="ape"></td>// y asi todos los campos que quieras
  
</tr>
  <
tr align="center" valign="middle">
  <
td height="63"><div align="right">Foto:</div></td>
  <
td height="63">  
        <
div align="left">
          <
input type="file" name="file">
          <
input type="hidden" name="MAX_FILE_SIZE" value="230000">
       
      </
div></td>
  <
td height="63">&nbsp;</td>
</
tr>
<
tr align="center" valign="middle">
  <
td colspan="3" height="11"><input type="submit" name="Submit" value="Subir" class="botoform">
  </
td>
</
tr
y ahora el script de procesar los datos llamado form.php

Código PHP:

<?php
$nom
=$_POST['nom'];
$ape=$_POST['ape'];
$nombre=strip_tags($_FILES['file']['name']);
$tamanio=strip_tags($_FILES['file']['size']);
$tipo=strip_tags($_FILES['file']['type']);
$MAX=strip_tags($_POST['MAX_FILE_SIZE']);
?>
luego en form.php haces los que necesites...

Espero haverte ayudado.