Re: [Newbie] PHP Variables

From: Date: Thu, 08 Feb 2001 23:41:09 +0000
Subject: Re: [Newbie] PHP Variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38837@lists.php.net to get a copy of this message
// Index.php file. // Page header <? if ($contents == "HOME") { include("home.inc"); } else { include("someothercontent.inc"); ?> // Page footer ... Difficult to tell what's going wrong with just a url. James. > I thought you can pass variables in PHP as in CGI. > > http://www.xy.com/index.php?contents=HOME > > contents should be available as variable, but it does not seem to work. Doe > anyone has an idea why not?

« previous php.general (#38837) next »