PDA

View Full Version : pull a variable from the link


Abe1
09-05-2004, 11:57 PM
How can i get a link that says *.*.php&f=12 to make $forumid = 12 in the called PHP?

rake
09-06-2004, 12:14 AM
vBulletin does it for you. Take a look in the includes/init.php file. It translates short variable names to long names. In this case $f => $forumid.

Abe1
09-06-2004, 12:21 AM
It looks like I was using php&f=5 I just relized it should be php?f=5.

Correct?

rake
09-06-2004, 12:32 AM
Yes, that is correct.

Abe1
09-06-2004, 03:35 PM
Yes, that is correct.
I realized what I was doing wrong. I was using a form and didn't have a hidden field called forumid. I was doing the ? the right way.