The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Passing variables
Can someone please explain, or give me a link to understanding how variables are passed between pages with vbulletin?
I know the code to get the variable is similar to: PHP Code:
PHP Code:
Thanks, any guidance would be greatly appreciated. |
#2
|
|||
|
|||
Yes it is either attaching a ?foo=bar to the end of a file name or by submitting values through forms. Those are the only 2 real ways to pass values. Well there is cookies but other than with logins I wouldn't recommend messing with them.
|
#3
|
|||
|
|||
The thing I struggle with is getting the actual page to pull the variables.
I know $_GET['var'] or $_POST['var'] but how does that relate to the serializing? is it replaced by the globalize array? |
#4
|
||||
|
||||
Quote:
PHP Code:
|
#5
|
|||
|
|||
edit... ahh.. I'm starting to get it .. thanks sabertoothe!
Thanks! |
#6
|
||||
|
||||
yeah i guess you could do that though i would personally just go for
PHP Code:
but in good coding practices you'd go PHP Code:
|
#7
|
|||
|
|||
You mean addslashes, assuming you're manipulating the database.
|
#8
|
||||
|
||||
oh yeah, oops
|
#9
|
|||
|
|||
yup got it perfectly. I just couldn't wrap my mind around the globalize and I wasn't using $_REQUEST. But it's all fabulous now. Thanks for the help guys. Erwins form to thread/email/post just got 500% better
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|