JamesHarrison
07-09-2007, 02:08 AM
Hi,
I'm trying to get a BBcode to include a PHP file, which access a variable set in the BBcode PHP side.
Eg, my bbcode needs to run this PHP:
$var = 32;
include("file.php");
And the script parsing it will do some clever DB stuff based on the $var and output HTML (file.php).
Any ideas how I would go about doing this? $var would be set by the user input (var's value)
I'm trying to get a BBcode to include a PHP file, which access a variable set in the BBcode PHP side.
Eg, my bbcode needs to run this PHP:
$var = 32;
include("file.php");
And the script parsing it will do some clever DB stuff based on the $var and output HTML (file.php).
Any ideas how I would go about doing this? $var would be set by the user input (var's value)