View Full Version : Passing variables
gabned
08-31-2005, 02:59 PM
Sorry, but I have a little big problem... I can't pass a variable from a page to another. I use this:
.........index.php?page=archivio&cid=1
And in this page I put this:
$cid = $_REQUEST['cid'];
But the result are negative and I don't find a way to solve this problem. How can fix this error??
gabned
09-02-2005, 02:28 AM
Nobody can help me??? :(
Brian
09-02-2005, 01:27 PM
Are you trying to use this in a module, or where exactly? Can you post the code?
gabned
09-03-2005, 03:06 AM
I try in a page, but there isn't other code.... i try to write this address: .........index.php?page=archivio&cid=1 and after I try to catch the cid variable with $cid = $_REQUEST['cid'] but nothing..... where is the error? I have to use a module and not a page?
Brian
09-03-2005, 04:50 PM
What kind of page are you adding? And where are you putting the $cid = $_REQUEST['cid'] code?
gabned
09-04-2005, 02:55 AM
I create a file php in the module's folder and in this file php I'm putting only this:
<?php
$cid = $_REQUEST['cid'];
print "$cid";
?>
But nothing...... don't work!!!
Brian
09-05-2005, 07:12 PM
Did you add a new module using that file as the file to include, and make sure that module is active on the page you're testing it on?
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.