nella pagina new.php aggiungi al form un campo hidden con nome "forumid" e valore preso da $_GET["f"].

E nelle query mysql sostituisci i $_GET["f"] con $_POST["forumid"]

Segui anche gli altri due consigli che ti ho dato...