![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
11/03/2004, 20:23
|
![Avatar de CHILENOCES](http://static.forosdelweb.com/customavatars/avatar10806_1.gif) | | | Fecha de Ingreso: octubre-2001 Ubicación: Mmm paseando por la vida
Mensajes: 491
Antigüedad: 23 años, 3 meses Puntos: 0 | |
Hola bueno revise tu código y el error es lo siguiente:
<form method=post action=otro.php>
Prueba asi mira:
<html><body>
<form method=post action=<?echo$PHP_SELF;?>>
<?php
echo "<table border=1 cellpadding=3 cellspacing=0>\n";
echo "<form method=post action=$PHP_SELF>";
$numero=0;
if (isset($_POST['articulo']))
{
foreach ($_POST['articulo'] as $articulo)
{
echo "<tr><td nowrap> ";
echo ($numero+1).".- Articulo: </td>\n";
echo "<td cellpadding=5> ";
echo "<input type=text name=\"articulo[$numero]\" value=\"$articulo\"></tr></td>\n";
$numero++;
}
}
echo "<tr><td nowrap> ";
echo ($numero+1).".- Articulo: </td>\n";
$namevar = articulo."[".$numero."]";
echo "<td cellpadding=5> ";
echo "<input type=text name=$namevar></tr></td>\n";
echo "<br><table border=1><td><input type=submit value=\"+\"></td>\n";
echo "<td><center> Agregar más Articulos</center></td></table>\n";
?>
<input type=submit value=guardar>
<body>
<html>
__________________ ChilenoCesar Looking for something new... |