> 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:[EMAIL PROTECTED]]
> 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:[EMAIL PROTECTED]]
> > 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to