![]() |
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. |
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.
|
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? |
Quote:
PHP Code:
|
edit... ahh.. I'm starting to get it .. thanks sabertoothe!
Thanks! |
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:
|
You mean addslashes, assuming you're manipulating the database.
|
oh yeah, oops :o
|
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 :)
|
All times are GMT. The time now is 09:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|