
02-02-2008, 10:12 AM
|
|
|
Join Date: Jun 2006
Location: Czech Republic, Brno
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Deety
I would like to have the form post new threads in multiple forums selected by checkboxes.
This code seems to work well for selecting one $formforumid, but the first two "else" statements would prevent multiple selections, and taking them out did no good.
I'm guessing the issue may be that $formforumid can't be assigned multiple values (i.e., $formforumid = "1,2,3" or some such), but hopefully it can and I'm just missing the language that will do it. Easy answers are nice.
If anyone has a suggestion to get multiple forums working, I'll make the edit to the original form and post it as an example so it's easy for the next person. Thanks for any ideas...
PHP Code:
if ($checkboxchoice1_1 = 1)
{
$formforumid = "1";
}
else
if ($checkboxchoice1_2 = 1)
{
$formforumid = "2";
}
else
if ($checkboxchoice1_3 = 1)
{
$formforumid = "3";
}
else
$formforumid = "4";
|
Quote:
Originally Posted by Grimbone
In the code below. how would I go about sending a post to 2 different forums?
Code:
$formforumid = "13";
I am trying to get this to post to both a regular section of the forums and to a private section.
|
Quote:
Originally Posted by CremeEgg
Anybody know what I would have to change with this section to get it to post to 2 forums?
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.
$formforumid = "x";
|
I am interested in this too. I tried to find solution, but without luck :-(. Could some coder help please?
|