PDA

View Full Version : ?page=xxx&variable=XXX


Mike_XBLW
05-19-2004, 03:54 PM
Still not getting this to work, Brian. I'm absolutely clueless.

I put up a new module and can't seem to get it to pass the variable. Is there somewhere I have to define the variable like there was in vbadvanced?

Anyway...here's the page:

http://www.xblw.com/cmps_index.php?Review=44

and the source http://www.xblw.com/rev2.php&Review=44

As for the code in there...it's pretty simple:

<?php echo "I wish this would echo the number that I put up there. It's $Review"; ?>

You've helped me out quite a bit in the past...so, hope this one is pretty easy.

Thanks

Brian
05-19-2004, 06:43 PM
You could either use "$_REQUEST['Review']", or add this line in your cmps_index.php file, right after the call to global.php:

globalize($_REQUEST, array('Review' => INT));

Our Sponsors
 

Mike_XBLW
05-19-2004, 07:09 PM
for the sake of argument...I did both...to no avail :(

Brian
05-19-2004, 07:35 PM
Try opening your vba_cmps_include_bottom.php file and look for:

global $pages, $stylevar, $headinclude, $header, $footer, $vboptions, $vba_options, $navbar, $cusid;

Replace that with:

global $pages, $stylevar, $headinclude, $header, $footer, $vboptions, $vba_options, $navbar, $cusid, $_REQUEST;

Then try using the variable $_REQUEST['Reviewid'] again and see if it works. Sorry I forgot that I had removed the $_REQUEST variable from that function before. I know it was in there before, but I must have forgotten why I had it in there and removed it. If that still doesn't work and you'd like to fill out a support ticket via the Members Area I'll be glad to take a look and see what the problem is.