Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/11/2008, 14:46
Avatar de chalchis
chalchis
 
Fecha de Ingreso: julio-2003
Mensajes: 1.773
Antigüedad: 21 años, 7 meses
Puntos: 21
Pregunta tener un formulario por cada fila

hola amigos estyo realizando un sistema de firma de asistencia
y quiero que cuando les aparesca la lista de materias a firma estas sean enviadas por post

es correcto usar asi los forms
Código:
<?php
if($_POST['materia']!="")
{
	echo "LA Materia enviada es :".$_POST['materia'];
}

?>

<!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>Untitled Document</title>
</head>

<body>

<table width="712" border="1">
  <tr>
    <td>
    <form name="formulario1" method="post" action="">
    <table width="652" height="27" border="1" align="center">
  <tr>
    <td width="193">
      <input type="text" name="materia" id="materia1" />
    </td>
    <td width="166">
      <input type="submit" name="button1" id="button1" value="Submit" />
    </td>
    <td width="271">&nbsp;</td>
  </tr>
</table>
    </form>    </td>
  </tr>
  <tr>
    <td>
    <form name="formulario2" method="post" action="">
    <table width="652" height="27" border="1" align="center">
  <tr>
    <td width="194">
      <input type="text" name="materia" id="materia2" />
   </td>
    <td width="165">
      <input type="submit" name="button2" id="button2" value="Submit" />
   </td>
    <td width="271">&nbsp;</td>
  </tr>
</table>
    </form>    </td>
  </tr>
  <tr>
    <td>
   <form name="formulario3" method="post" action="">
    <table width="652" height="27" border="1" align="center">
  <tr>
    <td width="191">
      <input type="text" name="materia" id="materia13" />
   </td>
    <td width="168">
      <input type="submit" name="button3" id="button3" value="Submit" />
    </td>
    <td width="271">&nbsp;</td>
  </tr>
</table>
    </form>
    </td>
  </tr>
</table>
<p>&nbsp;</p>

</body>
</html>
oh habra una manera mas sencilla con javascript, pero que solo se envie el valor de
de la fila que se dio enviar por post

espero sus comentarios amigos
saludos
__________________
gerardo