From: Chris Smith <csmith@squiz.net>
To: pgsql-php@postgresql.org
Subject: Re: PHP calling PHP?
Date: Thu, 10 May 2001 15:23:31 +1000
Message-ID: <01051015233100.28891@area51.cybersydney.com.au> (raw)
In-Reply-To: <Pine.LNX.4.21.0105101509500.11225-100000@webster.conprojan.com.au>
References: <Pine.LNX.4.21.0105101509500.11225-100000@webster.conprojan.com.au>
> > > echo "<FORM ACTION=\"$PHP_SELF\" METHOD=\"POST\">\n";
> >
> > Ack! You could do this for much better readability instead:
> > echo "<FORM ACTION='$PHP_SELF' METHOD='POST'>\n";
Different quotes do different things in PHP, just something to remember...
If you did echo '$PHP_SELF' (single quotes) it won't print the variable
value, it will print the variable name.. (easy to get caught on!)..
eg
<?
echo "PHPSELF = $PHP_SELF<br>";
echo 'PHPSELF = $PHP_SELF<br>';
?>
prints out..
PHPSELF = test.php
PHPSELF = $PHP_SELF
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: csmith@squiz.net
Subject: Re: PHP calling PHP?
In-Reply-To: <01051015233100.28891@area51.cybersydney.com.au>
References: <Pine.LNX.4.21.0105101509500.11225-100000@webster.conprojan.com.au> <01051015233100.28891@area51.cybersydney.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox