Aqui te dejo una posible solución (a completar el tema de la seguridad eso si)
Código PHP:
// Haces tu primer INSERT a la tabla primera (TURISMOS)
$insertSQL = sprintf("INSERT INTO turismos (idpresup_tur, operador, contoperador, `ref`, costo_tur, comis_tur, linkarch_tur) VALUES (%s, %s, %s, %s, %s, %s, 'xxx')",
GetSQLValueString($_POST['hfd_pre_hot_idpresup'], "int"),
GetSQLValueString($_POST['slc_pre_hot_empresas'], "int"),
GetSQLValueString($_POST['tfd_pre_hot_contacto'], "text"),
GetSQLValueString($_POST['tfd_pre_hot_ref'], "text"),
GetSQLValueString($_POST['tfd_pre_hot_costo'], "int"),
GetSQLValueString($_POST['tfd_pre_hot_comis'], "text"));
mysql_select_db($database_n_martinf, $n_martinf);
$Result1 = mysql_query($insertSQL, $n_martinf) or die(mysql_error());
$id = mysql_insert_id(); // id del primer insert en turismos
// Array en el que defino las tablas a las que hay que insertar los datos y las cosultas específicas de inserción en cada una de ellas
$tablas = array(
'tabla2' => 'INSERT INTO tabla2 (campo1,campo2) SELECT campo1,campo2 FROM turismos WHERE id='.$id,
'tabla3' => 'INSERT INTO tabla3 (campo2,campo6,campo3) SELECT campo2,campo6,campo3 FROM turismos WHERE id='.$id
);
// recorro el array haciendo un INSERT por cada tabla que tenga en el array "Tablas"
foreach ($tablas as $k=>$v){
mysql_query($v);
if(!mysql_affected_rows() == -1) echo "HUBO UN ERROR EN EL INSERT DE LA TABLA ".$k;
else echo "TODO BIEN EN LA TABLA ".$k;
}
Suerte con la nota