Log in

View Full Version : Code Hard Coded f=$forum[forumid]


alqadir
09-02-2004, 09:28 AM
Is it hardcoded in VB that f always equals f=$forum[forumid].

In a templete If I extract the f value from the URL (URL format is somefile.php?f=$forum[forumid]) then submit the templete to a php file, and in the php file I set a variable "c" to equal c=$forum[forumid], will C have the same value of f?

qd

rake
09-02-2004, 09:49 AM
What you're saying doesn't quite make sense. Could you please describe what you are trying to achieve?

nexialys
09-02-2004, 10:50 AM
you can play with the resource here to find WHY it's built that way:

in includes/init.php, FIND:
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{... you'll have the needed resource there, as you see why it's hardcoded to f= ...

rake
09-02-2004, 12:14 PM
To answer what i think your question was, to make another variable equal to forumid, add
$c = &$f
in your php file.

alqadir
09-02-2004, 02:49 PM
My question was is 'f' a system reserved variable that equals $forum[forumid].
From reading nexialys answer, it is by default. Is this correct?

Dean C
09-02-2004, 03:13 PM
Moved to General vBulletin Questions