![]() |
|
Thread Tools |
#1
|
||||||||||||||||
|
||||||||||||||||
![]()
I am working on a product, building from previously existing products, this is a page within the admincp.
I am wondering why sometimes I am able to pull a GPC variable and other times I am not, I am having this issue in multiple spots but this is just the smallest one to give the example. I am able to pull the productid with:
But I cant get the catid to pull:
This is the complete page in question, Just a simple confirmation page.
A way I get around this is to use a query, but since I can pull the productid, I just dont understand why I cant pull the catid, when they were both submitted through the same form. This is how I currently solve this problem:
__________________
If you need custom work done please use Dirt RIF CustUmz Owner of vBTeam vBulletin 3.8.14 DRC Edition PHP 7.4 Compatible- NOT a null, NOT complete files Requires a legit copy of vBulletin 3.8.11. No members have liked this post.
Last edited by Dr.CustUmz; 28 Oct 2020 at 15:13. |
#2
|
||||||||||||||||
|
||||||||||||||||
Originally Posted by Dr.CustUmz
Out of curiosity, if you var_dump($vbulletin->GPC); what does it return? And is it definitely present on var_dump($_REQUEST);?
![]()
__________________
Professional web developer & sysadmin. Former bad man.
The following members like this post: Dr.CustUmz
|
#3
|
||||||||||||
|
||||||||||||
var_dump($_REQUEST);
var_dump($vbulletin->GPC);
I am a bit baffled why there are references to products I have not installed on this fresh install, The only product I have installed is the product I am working on. This is the portion in my page where the productid and catid are added, I have stripped a majority of this page but kept what should be relevant.
I guess I should be asking is, how is a GPC variable even created? Because I know I can use productid on numerous pages, although I am unable to use catid on these pages.
__________________
If you need custom work done please use Dirt RIF CustUmz Owner of vBTeam vBulletin 3.8.14 DRC Edition PHP 7.4 Compatible- NOT a null, NOT complete files Requires a legit copy of vBulletin 3.8.11. No members have liked this post.
Last edited by Dr.CustUmz; 29 Oct 2020 at 22:17. |
#4
|
||||||||||||
|
||||||||||||
Originally Posted by Dr.CustUmz
Interesting to note catid does not get passed even in $_REQUEST.. it definitely has a named field?![]()
It'll only get registered in $vbulletin->GPC if it's first registered in $_REQUEST before your call to $vbulletin->input->clean_array_gpc(); In regards to it referencing plugins you don't have activated, I assume they are being passed in via $_COOKIE (which clean_gpc/clean_array_gpc will also run on).
__________________
Professional web developer & sysadmin. Former bad man.
The following members like this post: Dr.CustUmz
|
![]() |
Tags |
gpc, variable |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 15:06.