Buenas,
Si he entendido bien, creo que esto podría ayudarte:
Código PHP:
$result = mysql_query("SHOW TABLES FROM $dbname");
while($row = mysql_fetch_row($result))
{
$tablas[] = $row[0];
}
Eso en el tercer archivo. Guardarás todas las tablas dentro del array $tablas....
Y después, en el bucle del form puedes usar un in_array para comprobar si la tabla existe o no ;)