if (in_array($threadinfo[forumid], array(15))) { header('Location: http://www.your-site.com/forum/misc.php?do=form&fid=1') ; }