Easy A
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

Share
 

 BetaCode help

View previous topic View next topic Go down 
AuthorMessage
Cubes
Member
Member
Cubes

Posts : 2
Join date : 2011-06-05

BetaCode  help  Empty
PostSubject: BetaCode help    BetaCode  help  EmptyFri Jun 17, 2011 2:00 am

On my index.php page of my main root a user gets a betacode. Which is $betacode. And then on another page, i.e. /private/index.php, how would I get it to show that beta code. Like something like include '../index.php'; $_GET['betacode']) how would I so, because right now it's not working.
Back to top Go down
ScriptHacker
Member
Member
avatar

Posts : 4
Join date : 2011-06-05

BetaCode  help  Empty
PostSubject: Re: BetaCode help    BetaCode  help  EmptyFri Jun 17, 2011 2:01 am

If it's in the same request and your $betacode is declared outside of a function the variable will be available in any page you include after that. If you are redirecting them to the second page you can either pass it through the URL or use the a session variable.
Back to top Go down
 

BetaCode help

View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Easy A :: BetaCode  help  Edit-trash Useless :: Trash-