[Xitami] Simple PHP
Alasdair Macdonald
xitami@lists.xitami.org
Mon, 28 Oct 2002 21:08:57 -0000
Unless you have glabal variables ON in your php.ini file (a bad idea), you
need to bring the fields after the "?" into the url into your php code with:
$phpfirstname=$_REQUEST["firstname"];
(or similar, depending upon your configuration / version - it's in the php
manual).
Alasdair
On 2 Sep 2002 at 17:13, JPSmith wrote:
> 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>