Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/06/2011, 11:50
jonnyalexbh
 
Fecha de Ingreso: marzo-2011
Mensajes: 26
Antigüedad: 13 años, 2 meses
Puntos: 0
Exclamación Validar array

Buenas tardes

Quisiera saber como puedo validar el siguiente formulario

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>

<body>
<form id="frm_prueba" name="frm_prueba" method="post" action="">
  <table width="200" border="0" align="center">
    <tr>
      <td>nombre</td>
      <td>Apellido </td>
      <td>Fecha</td>
    </tr>
 <?php
 for($i=0; $i<=5; $i++)
 {
 ?>
    <tr>
      <td><label for="nombre[]"></label>
      <input type="text" name="nombre[]" id="nombre[]" /></td>
      <td><label for="apellido"></label>
      <input type="text" name="apellido" id="apellido" /></td>
      <td><label for="fecha[]"></label>
      <input type="text" name="fecha[]" id="fecha[]" /></td>
    </tr>
    <?php
 }
    ?>
  </table>
  <div align="center">
    <input type="submit" name="btn_validar" id="btn_validar" value="Validar" />
  </div>
</form>
</body>
</html>