tu sabes q uno crea el comportamiento de insertar registro, bueno funciona, pero o quuiero que se vaya a la otra pagina de edicion de registros con el id agregado eso jno lo logro hacer...
me puedes ayudar exactamente lei que era esto mysql_insert_id();
el asunto es q mi pagina de edicion de registros lee por post... y el ejemplo que yo tengo es por get mira
Código PHP:
$Result1 = mysql_query($insertSQL, $STU) or die(mysql_error());
$id= mysql_insert_id();
$insertGoTo = "presidentes_editar_full.php?id2=".$id;
ves es por get YO NO QUIERO ESO NI TAMPOCO DE SESION SOLO DE POST
XQ presidentes_editar_full.php SOLO LEE POR POST MIRA
Código PHP:
$colname_Recordset1 = "-1";
if (isset($_POST['id2'])) {
$colname_Recordset1 = (get_magic_quotes_gpc()) ? $_POST['id2'] : addslashes($_POST['id2']);
}
VEN AMIGOS....
ES USANDO DREANWEAVER OBVIAMENTE Y NO ESTA REPETIDO XQ ESTA ES OTRO ASUNTO....
COMO LE HAGO DONDE ESTA LA OPCION DE ENVIAR ID DESPUES DE INSERTAR REGISTRO EN DREEANWAVER
SINO HAY ME PUEDES DAR EL CODIGO ME INMAGINO Q NO PASAS DE UNA LINEA Y USTED SABE MUCH AMIGO PORFAAA!!!