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