[Xitami] Simple PHP

Richard Cunningham xitami@lists.xitami.org
Mon, 28 Oct 2002 13:57:21 -0700


I don't know if this was answered.

If PHP's register globals is off (now the default), the link you used can
only be called from within PHP. This is to prevent PHP variable pollution.
If you must have this type of link called from outside PHP, you have to go
into the php.ini file and turn register globals on. I highly recommend you
read about "register globals" on the PHP website.

Richard

----- Original Message -----
From: "JPSmith" <jpsmith@mediom.qc.ca>
To: <xitami@lists.xitami.org>
Sent: Monday, September 02, 2002 1:13 PM
Subject: [Xitami] Simple PHP


> I have this simple PHP code that does not display properly when called
> whith this link:
> <a href="welcome2.php?firstname=Kevin&lastname=Doe"> Test please! </a>.
> It is displaying only the following : Welcome to our Web site, !
>
> Other complicated stuff, like accessing MySQL, works properly  in Perl or
PHP.
> Is this a Perl or Xitami question? How to fix it?
>
>
> <------------------------->
> <html>
> <head>
> <title> Query String Link </title>
> </head>
> <body>
> <?php
>    echo( "Welcome to our Web site, $firstname $lastname!" );
> ?>
> </body>
> </html>
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>