Ver Mensaje Individual
  #6 (permalink)  
Antiguo 04/06/2012, 14:13
sjj
 
Fecha de Ingreso: octubre-2008
Mensajes: 213
Antigüedad: 15 años, 6 meses
Puntos: 12
Respuesta: Redireccionar según opción elegida

Acá va:

compacto 3.php

Código PHP:
<!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=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>

<?php
header
("location:" .$_POST["liste1"]);//Este es el código que permitiría redirigir.
$conexion=mysql_connect("localhost","josper_admin","A1234bcd"
  or die(
"Problemas en la conexion");
mysql_select_db("josper_reservas",$conexion) or
  die(
"Problemas en la seleccion de la base de datos");
mysql_query("insert into reservas (pais,provincia,zona,auto,fecalq,horalq,fecdevol,hordevol,km,seguro) values 
 ('$_REQUEST[pais]','$_REQUEST[select]','$_REQUEST[select2]','$_REQUEST[liste1]','$_REQUEST[fecalq]','$_REQUEST[horalq]','$_REQUEST[fecdevol]','$_REQUEST[hordevol]','$_REQUEST[km]','$_REQUEST[seguro]')"

   
$conexion) or die("Problemas en el select".mysql_error());
mysql_close($conexion);

?>

</body>
</html>