Soy principiante en esto y agradesco su ayuda de antemano amigos (:
Tengo una tabla en la cual despliego datos de mi Bd en mysql por medio de php
tengo mi archivo index.php en el cual tengo un boton del cual necesito que al dar click m envie los datos de esa fila en la cual se ubica el boton hacia mi archivo "bajas" y "modificar" para de esta manera ejecutar mis comandos pertinentes para borrar y ejecutar , en mi otras paginas (modificar.php & borrar.php) tengo ciertos campos de texto en los cuales quiero enviar los datos que mencione.El codigo es el siguiente:
index.php :
Código PHP:
echo "<table bordercolor=blue width=50% border=1 cellpadding=4 cellspacing=0>";
echo "<tr>
<th colspan=5> PRODUCTOS </th>
<tr>
<th> CLAVE </th><th> DESCRIPCIÓN</th><th> EXISTENCIA </TH><TH> TIPO </TH> <th> BAJAS </th><th> CAMBIOS </th>
</tr>";
while($row=mysql_fetch_array($result))
{
echo "<tr>
<td align='right'> $row[cveprod] </td>
<td> $row[descrip] </td>
<td> $row[existencia] </td>
<td> $row[desctipo] </td>
<td>
<html>
<body>
<form action=eliminarprod.php method=POST>
<input type=submit value=Eliminar >
Código PHP:
</form>
</body>
</html>
</td>
<td>
<html>
<body>
<form action=modificarprod.php method=POST>
<input type=submit value=modificar>"
Código PHP:
</form>
</body>
</html>
</td>
</tr>";
}
echo "</table>";