if (isset($_POST['salida_hora'])) { $salida_hora = $_POST['salida_hora']; } if (isset($_POST['llegada_ciudad'])) { $llegada_ciudad = $_POST['llegada_ciudad']; } if (isset($_POST['llegada_fecha'])) { $llegada_fecha = $_POST['llegada_fecha']; } if (isset($_POST['llegada_hora'])) { $llegada_hora = $_POST['llegada_hora']; } $valor = ""; if (isset($_POST['actualizar'])) { if (empty($tipo) == false and empty($nombre) == false and empty($salida_ciudad) == false and empty($salida_fecha) == false and empty($salida_hora) == false and empty($llegada_ciudad) == false and empty($llegada_fecha) == false and empty($llegada_hora) == false) { $confirmacion = actualizar_ruta($_GET['id'], $tipo, $nombre, $salida_ciudad, $salida_fecha, $salida_hora, $llegada_ciudad, $llegada_fecha, $llegada_hora); //returns omg lol; if ($confirmacion == 1) { $valor = "Actualizacion Exitosa!!"; } else { $valor = "Error"; } } else { echo "valores vacios"; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Editar Ruta</title>
<?php require 'utilitarios/listas.php'; require 'utilitarios/class.php'; echo "tipo" . $_POST['tipo'] . "<br />"; echo "nombre" . $_POST['nombre'] . "<br />"; echo "salida_ciudad" . $_POST['salida_ciudad'] . "<br />"; echo "salida_fecha" . $_POST['salida_fecha'] . "<br />"; echo "salida_hora" . $_POST['salida_hora'] . "<br />"; echo "llegada_ciudad" . $_POST['llegada_ciudad'] . "<br />"; echo "llegada_fecha" . $_POST['llegada_fecha'] . "<br />"; echo "llegada_hora" . $_POST['llegada_hora'] . "<br />"; $resultado = actualizar_ruta(37, $_POST['tipo'], $_POST['nombre'], $_POST['salida_ciudad'], $_POST['salida_fecha'], $_POST['salida_hora'], $_POST['llegada_ciudad'], $_POST['llegada_fecha'], $_POST['llegada_hora']); //returns omg lol; if ($resultado == 1) { echo "registro guardado"; } else { echo "Error"; }