Okay, so I tried this:
Code:
require('./global.php');
require('./class_bbcode.php');
require('./functions_wysiwyg.php');
convert_wysiwyg_html_to_bbcode ($formpurpose);
...with no luck; it's telling me that the libraries are not defined. Of course, I'm quite sure I went about it completely wrong; as I've already admitted, I'm new to PHP and have no idea what syntax I should be using. If it's not too much trouble, might someone supply some sample code so I can see what I need to be doing?