Ver Mensaje Individual
  #5 (permalink)  
Antiguo 20/10/2003, 09:13
necu
 
Fecha de Ingreso: abril-2003
Ubicación: 127.0.0.1
Mensajes: 359
Antigüedad: 21 años
Puntos: 0
cluster sabes ke no me entrega los valores en la otra pagina:

index.php:
Código PHP:
<?php

include("conexion.php");
echo 
"<form action=\"procesar.php\" method=\"post\"> \n";
echo 
"<table border='1'> \n";
echo 
"<tr> \n";
echo 
"<td></td> \n";
echo 
"<td><b>Nombre</b></td> \n";
echo 
"<td><b>Pais</b></td> \n";
echo 
"</tr> \n";
while (
$row mysql_fetch_array($resultado_final)){
echo 
"<tr> \n";
echo 
"<td><input type=\"checkbox\" name=\"seleccion[]\" value=\"$row[3]\"></td> \n";
echo 
"<td>$row[0]</td> \n";
echo 
"<td>$row[1]</td> \n";
echo 
"</tr> \n";
}
echo 
"<tr> \n";
echo 
"<td></td> \n";
echo 
"<td></td> \n";
echo 
"</tr> \n";

echo 
"<tr> \n";
echo 
"<td></td> \n";
echo 
"<td></td> \n";
echo 
"<td><input type=\"submit\" name=\"Submit\" value=\"Enviar\"></td> \n";
echo 
"</tr> \n";
echo 
"</table> \n";
echo 
"</form> \n";
?>

procesar.php
Código PHP:
<?php
include ("conexion.php");
echo 
"ID's Seleccionados:<br>";
foreach (
$_POST['seleccion'] as $id){
   echo 
$id."<br>";
}
?>
conexion.php
Código PHP:
<?php
$host
="localhost";
$usuarioBD="xx";
$contaseñaBD="xx";
$base_de_datos="xx";
$tabla="test1";
$coneccion mysql_connect($host,$usuarioBD,$contraseñaBD) or die (mysql_error());
mysql_select_db($base_de_datos$coneccion) or die (mysql_error());
$resultado = ("SELECT nombre, pais, id FROM test1");
$resultado_final mysql_query($resultado$coneccion) or die (mysql_error());
?>
el problema que tengo es ke en la pagina de pocesar.php no me muestra los resultados seccionados en la index.php, que puede ser????????
__________________
Practicando se Aprede
:-) :-)