Ok, I've been trying to nut this out based on what others have posted in the thread.
Basically, I want a drop down box which defines what forum the news will be posted too.
I have the following:
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 ($dropdownanswer1 == 'Hardware'){
$formforumid = "96";}
if ($dropdownanswer1 == 'Software'){
$formforumid = "99";}
Further down:
Code:
////////////////////////////////////////////////////////////////////////////////////////////////////
//DROP DOWN CHOICES : QUESTION 1 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
////////////////////////////////////////////////////////////////////////////////////////////////////
// The following choices must NOT have quotation marks
$newscatchoice1a = "Hardware";
$newscatchoice1b = "Software";
Template:
Code:
<select name="dropdownanswer1">
<option value="$newscatchoice1a" <if condition="$newscatchoice1a == $dropdownanswer1">selected="selected"</if>>$newscatchoice1a</option>
<option value="$newscatchoice1b" <if condition="$newscatchoice1b == $dropdownanswer1">selected="selected"</if>>$newscatchoice1b</option>
</select>
EDIT - THIS IS FIXED - SEE POST BELOW: When I submit the form using this, I get:
Warning: Cannot use a scalar value as an array in /includes/functions_newpost.php on line 356
Could someone offer some advice. I'm assuming the problem lies in the above somewhere; maybe!!
THanks!