Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/05/2008, 06:30
Avatar de Netfrank
Netfrank
 
Fecha de Ingreso: marzo-2006
Ubicación: Las Talitas - Tucumán
Mensajes: 226
Antigüedad: 18 años, 1 mes
Puntos: 3
Respuesta: $id= mysql_insert_id(); ENVIARLA POR POST(O VARIABLE DE FORMULARIO) AYUDA

No entiendo bien tu problema, pero para pasar una variable por post puedes usar javascript:

En tu código tomas el valor del id, así:
Código:
<?php

mysql_select_db($database_db, $db);
$Result1 = mysql_query($insertSQL, $db) or die(mysql_error());
$id= mysql_insert_id();

?>

<body onload="document.getElementById('formu').submit();">

<form name="algo" id="formu" action="pagina-que-recibe-el-id.php" method="POST">
     <input type="hidden" name="id" value="<?php echo $id=mysql_insert_id(); ?>">
</form>

</body>
Aver si te sirve... Saludos.
__________________
-- Franco D. Ocaranza
-- [email protected]
-- http://www.jmqv.com.ar/