PDA

View Full Version : GET variables in an external page


LlamaBE
08-08-2007, 11:08 AM
Hi,

I have a page in which i've included global.php to use the user functions and such from vbulletin.

In that page, i want to access a GET variable, but it seems i can't.

$_GET['page'] seems to return only a 0

I've seen around this forum ppl using $page = $vbulletin->input->clean_gpc('g', 'page', TYPE_STR); This also gives me a 0 as a result.

Any solutions? And is there anywhere some technical documentation somewhere that would give me these answers? Or should we just figure it all out by looking at vBulletin's code?

Thanks,
Tom

Marco van Herwaarden
08-08-2007, 03:20 PM
If the above returns 0, then the value of $_GET['page'] is '0'.

(TYPE_STR will cast it to a string, so '0' is not a default for an empty/non-exisitng variable)

grazianno
08-08-2007, 05:30 PM
you can use vbexternal :)