If a certain circumstance is true, I want a redirect to go newthread.php and have the Title and Message parts filled out with pre-determined info. How do I do this?
This will be done from one of the admincp pages (not going to say which at this time).
So far, I have:
Code:
if ($_POST['discussannouncement'] == '1')
{
define('CP_REDIRECT', $vboptions[bburl].'/newthread.php');
}
else
{
define('CP_REDIRECT', '-------.php');
}
As it is, this works fine. If the condition is true, it goes to newthread.php, and if it's not, it goes to itself, as is the normal behavior for the particular script. The only problem with the code above is that I get an invalid forum message, but I've already figured out I can solve that by changing "newthread.php" in the code above to "newthread.php?f=2" (or some other number).
But I'd like for the new thread page to have the Title and Message pre-filled out with the values of two separate variables.
Is there a way to do this?
Thanks in advance!