OKAY!!! I am almost there... just need a little bit of help from someone who knows basic PHP. I know programming, but not PHP!
on open.inc.php:
ANY MESSAGE <?php echo $info; ?>
Whatever I type on ANY MESSAGE, will show inside the form. 50% of the problem solved...
Now, this is where my problem lies.. before the code above, there's the code to select the help topic, which looks like this:
Help Topic:
— Select a Help Topic —
<?php
if($topics=Topic:()) {
foreach($topics as $id =>$name) {
echo sprintf('%s',
$id, ($info==$id)?'selected="selected"':'', $name);
}
} else { ?>
General Inquiry
<?php
} ?>
* <?php echo $errors; ?>
I could easily do this in Visual Basic, but don't know how to do in PHP. Maybe you can help me...
How would I do the following:
For each topic selected, not only get the topic name, but once selected, get the admin note of that topic from the database, and add it to a temporary variable. Then, make this temporary variable POST its contents under the first code above, instead of ANY MESSAGE.
Do any of you know enough PHP to help me do this?
Another option would be to search in the database for the admin note of topicId, and print that admin note under ANY MESSAGE. However, I also don't know how to do this!
Thanks!