My solution:
Add:
PHP Code:
<input type="hidden" value="$foid" name="fid" />
after:
PHP Code:
<input type="hidden" value="$formname" name="do" />
then set the variable:
PHP Code:
'foid' => TYPE_STR
PHP Code:
$foid = $_REQUEST['fid'];
and now add the following:
PHP Code:
//FORUM TO POST NEW THREAD IN
//You CAN make this number a variable. You can have a drop down menu or in the link like do=form&f=1. Make sure you add it the variables list.
if ($foid == '5'){
$formforumid = "5";}
if ($foid == '6'){
$formforumid = "6";}
open the form with:
newthread.php?do=form&fid=5 or 6 or what you want
thats it