hola mi prob esta en que yo quiero ingresar una fila al contenido de los datos mostrados en otra php pero no pasa eso , mas bien al parecer lo ingresa pero en el contenido no aparece el nuevo dato.
Mi codigo es php y es el sgte:
[PHP<?
session_start();
include("include/db.php");
include("include/functions.php");
db_connect();
function tratar_basico($string) {
return($string);
}
if(!isset($_SESSION['user'])) {
header("Location: index.php");
}
if(isset($_POST['Registrar'])) {
$ode = "INSERT INTO ode (id_ode, nombre, direccion, telefono) VALUES ('" . $_POST['id_ode'] . "', '" . $_POST['nombre'] . "', '".$_POST['direccion']. "','" . $_POST['telefono'] ."')";
//echo $ode;
echo "OPE registrada con exito";
//db_query($ode);
//header("Location: ode_consultar.php");
}
?>
<html>
<head>
<title>CESAD</title>
<link rel="stylesheet" href="include/estilos.css" type="text/css">
<script language="JavaScript" src ="include/common.js"> </script>
<script language="JavaScript" type="text/javascript">
function validaOficina() {
if(document.frmOficina.nombre.value == '') {
alert("Debe ingresar el nombre de la Ope");
document.frmOficina.nombre.focus();
return false;
}
if(document.frmOficina.direccion.value == '') {
alert("Debe ingresar la ubicacion");
document.frmOficina.direccion.focus();
return false;
}
if(document.frmoficina.telefono.value == '') {
alert("Debe ingresar el numero telefonico");
document.frmOficina.telefono.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<?include("cabecera.php");?>
<form name="frmOficina" method="post" action="<?echo $_SERVER['PHP_SELF']?>" onsubmit="return validaOficina();">
<table border="0" width="774" height="458" cellpadding="0" cellspacing="0
<tr>
<td valign="top">
[/PHP] ylo quesigue no....