Re: [Newbie] PHP Variables

From: Date: Fri, 09 Feb 2001 19:39:20 +0000
Subject: Re: [Newbie] PHP Variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38995@lists.php.net to get a copy of this message
> I just wanted to try this: > > I take a link : http//www.xy.com/index.php?contents=HOME > > There I echo contents > > <?php echo $contents?> > <div align="center"><?php echo $contents; ?></div> I'm still learning PHP, but... Why are you echoing it twice? Also, the first line, shouldn't it be: <?php echo $contents; ?> Looks liek you dropped the semi colon - John Vanderbeck - Admin, GameDesign > > It should display HOME? But it does not ! > > > -----Original Message----- > From: Brian V Bonini [mailto:brian@gfx.cncdsl.com] > Sent: donderdag 8 februari 2001 23:55 > To: Steve Haemelinck > Subject: RE: [PHP] [Newbie] PHP Variables > > you can, what's the rest of your script look like. > > > -----Original Message----- > > From: Steve Haemelinck [mailto:steve.haemelinck@pandora.be] > > Sent: Thursday, February 08, 2001 3:49 PM > > To: PHP Mailing Listl (E-mail) > > Subject: [PHP] [Newbie] PHP Variables > > > > > > 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? > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#38995) next »